Home > tupelo-wasm-sdk > EcdsaKey
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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(publicKeyBits, privateKeyBits) | Constructs a new instance of the EcdsaKey class |
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 |
Method | Modifiers | Description |
---|---|---|
keyAddr() |