@nolus/nolusjs
Version:
JS library for NodeJS and Web browsers to interact with the Nolus Protocol
14 lines (13 loc) • 734 B
TypeScript
import { HdPath } from '@cosmjs/crypto';
/**
* KeyUtils provides helpers for working with Nolus accounts.
*/
export declare class KeyUtils {
static getPrivateKeyFromMnemonic(mnemonic: string, hdPath: HdPath): Promise<Uint8Array<ArrayBufferLike>>;
static getSeedFromMnemonic(mnemonic: string): Promise<Uint8Array<ArrayBufferLike>>;
static getPrivateKeyFromSeed(seed: Uint8Array, hdPath: HdPath): Uint8Array<ArrayBufferLike>;
static getAddressFromPublicKey(publicKey: Uint8Array, prefix?: string): string;
static getPublicKeyFromPrivateKey(privateKey: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;
static isAddressValid(address: string, prefix?: string): boolean;
static generateMnemonic(): string;
}