Constructors
constructor
- new Keypair(keypair: KeyPair, netType?: number): Keypair
Parameters
keypair: KeyPair
Optional netType: number
Properties
privateKey
privateKey: Uint8Array
publicKey
publicKey: Uint8Array
Methods
sign
- sign(message: string | Uint8Array): Promise<Uint8Array>
Parameters
message: string | Uint8Array
Returns Promise<Uint8Array>
Static fromEntropy
- fromEntropy(entropy: Uint8Array | Buffer, netType?: number): Promise<Keypair>
Parameters
entropy: Uint8Array | Buffer
Optional netType: number
Returns Promise<Keypair>
Static fromWords
- fromWords(words: string[], netType?: number): Promise<Keypair>
Parameters
words: string[]
Optional netType: number
Returns Promise<Keypair>
Static makeRandom
- makeRandom(netType?: number): Promise<Keypair>