Constructors
constructor
- new Keypair(keypair: SodiumKeyPair, netType?: number): Keypair
-
Parameters
-
keypair: SodiumKeyPair
-
Optional netType: number
Properties
keyType
keyType: number
keypair
keypair: SodiumKeyPair
netType
netType: number
privateKey
privateKey: Buffer
publicKey
publicKey: Buffer
Accessors
address
-
Returns default
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 fromMnemonic
-
Parameters
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>
-
Parameters
Returns Promise<Keypair>