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

NameTypeDescription
address PublicKeyPublic key
secret SecretKeySecret key

Methods

NameDescription
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