Documentation ¶
Index ¶
- func CalculateHashWithoutSign(txBody *types.TxBody) []byte
- func EncryptKey(key []byte, pass string) ([]byte, error)
- func GenerateAddress(pubkey *ecdsa.PublicKey) []byte
- func SignTx(tx *types.Tx, key *aergokey) error
- func VerifyTx(tx *types.Tx) error
- func VerifyTxWithAddress(tx *types.Tx, address []byte) error
- type Address
- type Store
- func (ks *Store) CloseStore()
- func (ks *Store) CreateKey(pass string) (Address, error)
- func (ks *Store) ExportKey(addr Address, pass string) ([]byte, error)
- func (ks *Store) GetAddresses() ([]Address, error)
- func (ks *Store) ImportKey(imported []byte, oldpass string, newpass string) (Address, error)
- func (ks *Store) Lock(addr Address, pass string) (Address, error)
- func (ks *Store) SaveAddress(addr Address) error
- func (ks *Store) Sign(addr Address, pass string, hash []byte) ([]byte, error)
- func (ks *Store) SignTx(tx *types.Tx, requester []byte) error
- func (ks *Store) Unlock(addr Address, pass string) (Address, error)
- func (ks *Store) VerifyTx(tx *types.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateHashWithoutSign ¶
CalculateHashWithoutSign return hash of tx without sign field
func EncryptKey ¶ added in v0.9.0
EncryptKey encrypts a key with a given export for exporting
func GenerateAddress ¶
Types ¶
type Store ¶
Store stucture of keystore
func (*Store) CloseStore ¶
func (ks *Store) CloseStore()
func (*Store) GetAddresses ¶
func (*Store) SaveAddress ¶
func (*Store) SignTx ¶
SignTx return transaction which signed with unlocked key. if requester is nil, requester is assumed to tx.Account
Click to show internal directories.
Click to hide internal directories.