UNPKG

@coolwallet/xlm

Version:
22 lines (21 loc) 771 B
/// <reference types="node" /> import { coin as COIN } from '@coolwallet/core'; import * as types from './config/types'; import { COIN_SPECIES, PROTOCOL } from './config/types'; export { COIN_SPECIES, PROTOCOL }; export default class XLM extends COIN.EDDSACoin implements COIN.Coin { transfer: { script: string; signature: string; }; constructor(type: string); getAddress(transport: types.Transport, appPrivateKey: string, appId: string, protocol?: PROTOCOL): Promise<string>; getAddressByAccountKey(publicKey: string): Promise<string>; /** * sign XLM signatureBase with account 0, return signature. */ signTransaction(signTxData: types.signTxType): Promise<{ r: string; s: string; } | Buffer>; }