Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressConverter, _ = addressConverters.NewPlainAddressConverter(32, "0x")
Functions ¶
func CreateEmptyAddress ¶
func CreateEmptyAddress() state.AddressContainer
CreateEmptyAddress creates an empty address
func ReadPrivateKeyFromPemText ¶
func ReadPrivateKeyFromPemText(pemText string) (crypto.PrivateKey, error)
ReadPrivateKeyFromPemText reads a private key from a string
func ReturnBadRequest ¶
ReturnBadRequest returns a "bad request" response
func ReturnOkResponse ¶
ReturnOkResponse returns an "ok" response
Types ¶
type SignedTransaction ¶
type SignedTransaction struct {
Nonce uint64 `json:"nonce"`
Value string `json:"value"`
Receiver string `json:"receiver"`
Sender string `json:"sender"`
GasPrice uint64 `json:"gasPrice"`
GasLimit uint64 `json:"gasLimit"`
Data string `json:"data"`
Signature string `json:"signature"`
Bytes []byte
}
SignedTransaction is a signed transaction
func NewSignedTransaction ¶
func NewSignedTransaction(tx *transaction.Transaction, privateKey crypto.PrivateKey) (*SignedTransaction, error)
NewSignedTransaction creates as signed transaction
Click to show internal directories.
Click to hide internal directories.