Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 291 Bytes

File metadata and controls

22 lines (14 loc) · 291 Bytes

Wallet

A helper functions for wallet management.

Functions

importKey(privateKey: string)

Import a public key to the wallet.

createKey(): KeyPair

Create new public/private key pair.

Types

interface KeyPair {
  publicKey: PublicKey;
  privateKey: PrivateKey;
}