Documentation ¶
Index ¶
- func DeriveKey(masterKey *bip32.Key, path string) (*ecdsa.PrivateKey, error)
- func GetAddressFromKey(key *ecdsa.PrivateKey) common.Address
- func Loop()
- type Mnemonic
- func (d *Mnemonic) GetAddresses(path_format string, start_from int, count int) ([]common.Address, []string, error)
- func (d Mnemonic) Sign(msg *bus.Message, data []byte, path string) (string, error)
- func (d Mnemonic) SignTx(chain_id int64, tx *types.Transaction, path string) (*types.Transaction, error)
- func (d Mnemonic) SignTypedData(msg *bus.Message, typedData apitypes.TypedData, path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveKey ¶
func DeriveKey(masterKey *bip32.Key, path string) (*ecdsa.PrivateKey, error)
deriveKey derives a key from the master key using the specified path
func GetAddressFromKey ¶
func GetAddressFromKey(key *ecdsa.PrivateKey) common.Address
getAddressFromKey generates an Ethereum address from the private key
Types ¶
Click to show internal directories.
Click to hide internal directories.