tupelo-wasm-sdk

Home > tupelo-wasm-sdk > EcdsaKey

EcdsaKey class

EcdsaKey defines the public/private key-pairs used to interact with Tupelo. It also supportes generating new keys either randomly or through a passphrase.

Signature:

export declare class EcdsaKey 

Constructors

Constructor Modifiers Description
(constructor)(publicKeyBits, privateKeyBits)   Constructs a new instance of the EcdsaKey class

Properties

Property Modifiers Type Description
fromBytes static (bytes: Uint8Array) => Promise<EcdsaKey>  
generate static () => Promise<EcdsaKey> Generate a new keypair with random bits.
passPhraseKey static (phrase: Uint8Array, salt: Uint8Array) => Promise<EcdsaKey> Generate a new key based on a passphrase and salt (this goes through the Warp wallet treatment https://keybase.io/warp/warp_1.0.9_SHA256_a2067491ab582bde779f4505055807c2479354633a2216b22cf1e92d1a6e4a87.html)
privateKey   Uint8Array  
publicKey   Uint8Array  

Methods

Method Modifiers Description
keyAddr()