Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAddress ¶
GenerateAddress calculates the raw (not-encoded) address for a private key. Address is the raw, internally used identifier of an account In Aergo, the address is synonymous with the compressed public key (33 bytes).
func NewV1Strategy ¶
func NewV1Strategy() *v1Strategy
Types ¶
type KeyCryptoStrategy ¶
type KeyCryptoStrategy interface { Encrypt(key *PrivateKey, passphrase string) ([]byte, error) Decrypt(encrypted []byte, passphrase string) (*PrivateKey, error) }
type PrivateKey ¶
type PrivateKey = btcec.PrivateKey
Click to show internal directories.
Click to hide internal directories.