Struct KeyPair
A structure to hold a secret key + public key + seed
Can be constructed from a seed
To construct addresses (PublicKey), see fromString
struct KeyPair
;
Fields
Name | Type | Description |
---|---|---|
address
|
PublicKey | Public key |
secret
|
SecretKey | Secret key |
Methods
Name | Description |
---|---|
fromSeed
(seed)
|
Create a keypair from a SecretKey
|
random
()
|
Generate a new, random, keypair |
sign
(msg)
|
Signs a message with this keypair's private key |