UNPKG

@ledgerhq/coin-aptos

Version:
27 lines (23 loc) 618 B
export interface AptosAddress { publicKey: Buffer; chainCode: Buffer; address: string; } export interface AptosSigner { getAddress(path: string, display: boolean): Promise<AptosAddress>; signTransaction(path: string, txBuffer: Buffer): Promise<{ signature: Buffer }>; } export type AptosSignature = { signature: null | Buffer; return_code: number; error_message: string; signature_der: Uint8Array; signature_compact: Uint8Array; }; export type AptosGetAddrResponse = { addrByte: Uint8Array; addrString: string; compressed_pk: Uint8Array; return_code: number; error_message: string; };