@coolwallet/kas
Version:
12 lines (11 loc) • 846 B
TypeScript
import { coin as COIN, Transport } from '@coolwallet/core';
import * as types from './config/types';
export default class KAS extends COIN.ECDSACoin implements COIN.Coin {
ScriptType: any;
addressToOutScript: (address: string) => types.Script;
constructor();
getAddress(transport: Transport, appPrivateKey: string, appId: string, scriptType: types.ScriptType, addressIndex: number, purpose?: number): Promise<string>;
getAddressAndOutScript(transport: Transport, appPrivateKey: string, appId: string, scriptType: types.ScriptType, addressIndex: number, purpose?: number): Promise<types.Payment>;
getAddressAndOutScriptByAccountKey(accPublicKey: string, accChainCode: string, addressIndex: number, scriptType: types.ScriptType): Promise<types.Payment>;
signTransaction(signTxType: types.SignTxType): Promise<string>;
}