UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

18 lines (17 loc) 737 B
import { Secret } from '../Secret'; import { Seed } from './Seed'; import { PhraseLanguage } from '../../../implementations/PhraseWallet/PhraseLanguage'; import { PhraseNumOfWords } from '../../../implementations/PhraseWallet/PhraseNumOfWords'; export declare class PhraseEncodingError extends Error { constructor(message: string); } export declare class Phrase extends Secret { private readonly phrase; constructor(phrase: string); getSeed(): Promise<Seed>; getPhrase(): Promise<string>; static isValidPhrase(phrase: string): boolean; static generateNewPhrase(language?: PhraseLanguage, numberOfWords?: PhraseNumOfWords): string; get raw(): Uint8Array; static new(source: string): Promise<Phrase>; }