UNPKG

@coolwallet/zen

Version:
27 lines (26 loc) 1.26 kB
/// <reference types="node" /> import { coin as COIN } from '@coolwallet/core'; import * as types from './config/types'; export declare const ScriptType: typeof types.ScriptType; export default class ZEN extends COIN.ECDSACoin implements COIN.Coin { addressToOutScript: (address: string) => { scriptType: types.ScriptType; outScript: Buffer; outHash?: Buffer; }; constructor(); getAddress(transport: types.Transport, appPrivateKey: string, appId: string, scriptType: types.ScriptType, addressIndex: number): Promise<string>; getAddressAndOutScript(transport: types.Transport, appPrivateKey: string, appId: string, scriptType: types.ScriptType, addressIndex: number): Promise<{ address: string; outScript: Buffer; }>; getAddressAndOutScriptByAccountKey(accPublicKey: string, accChainCode: string, addressIndex: number, scriptType: types.ScriptType): Promise<{ address: string; outScript: Buffer; }>; getAddressAndOutScriptByAccountKeySync(accPublicKey: string, accChainCode: string, addressIndex: number, scriptType: types.ScriptType): { address: string; outScript: Buffer; }; signTransaction(signTxData: types.signTxType): Promise<string>; }