Constructors
constructor
- new Keypair(keypair: SodiumKeyPair, netType?: number): Keypair
Parameters
keypair: SodiumKeyPair
Optional netType: number
Properties
keypair
keypair: SodiumKeyPair
privateKey
privateKey: Buffer
publicKey
publicKey: Buffer
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>