Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllAccounts ¶
GetAllAccounts - get list of local account addresses
Types ¶
type Account ¶
type Account struct { Address common.Address `json:"address"` // Account address PrivateKey *ecdsa.PrivateKey `json:"privateKey"` // Account private key SerializedPrivateKey []byte `json:"s_privateKey"` // Serialized account private key }
Account - container holding account metadata, private key
func AccountFromKey ¶
func AccountFromKey(privateKey *ecdsa.PrivateKey) (*Account, error)
AccountFromKey - generate account from given private key
func NewContractAccount ¶ added in v0.5.1
func NewContractAccount(contractSource []byte, deployingAccountAddress *common.Address) (*Account, error)
NewContractAccount - create new account for contract
func ReadAccountFromMemory ¶
ReadAccountFromMemory - read account with address from persistent memory
func (*Account) MakeEncodingSafe ¶
MakeEncodingSafe - make account safe for encoding
func (*Account) RecoverSafeEncoding ¶
RecoverSafeEncoding - recover full data from safely encoded type
func (*Account) WriteToMemory ¶
WriteToMemory - write given account to persistent memory
Click to show internal directories.
Click to hide internal directories.