UNPKG

@terra-money/core

Version:

This package provides Terra Blockchain client side APIs to support building transaction, singing, or querying chain data.

15 lines (14 loc) 773 B
/// <reference types="node" /> import * as bip32 from 'bip32'; export declare function deriveMasterKey(mnemonic: string): Promise<bip32.BIP32Interface>; export declare function deriveMasterKeySync(mnemonic: string): bip32.BIP32Interface; export interface KeyPair { privateKey: Buffer; publicKey: Buffer; } export declare function deriveKeypair(masterKey: bip32.BIP32Interface, account?: Number, index?: Number): KeyPair; export declare function getAccAddress(publicKey: Buffer): string; export declare function getValAddress(publicKey: Buffer): string; export declare function convertValAddressToAccAddress(address: string): string; export declare function convertAccAddressToValAddress(address: string): string; export declare function generateMnemonic(): string;