UNPKG

@ledgerhq/coin-filecoin

Version:
20 lines (18 loc) 564 B
export type FilecoinSignature = { return_code: number; error_message: string; signature_der: Uint8Array; signature_compact: Uint8Array; }; export type FilecoinGetAddrResponse = { addrByte: Uint8Array; addrString: string; compressed_pk: Uint8Array; return_code: number; error_message: string; }; export interface FilecoinSigner { showAddressAndPubKey(path: string): Promise<FilecoinGetAddrResponse>; getAddressAndPubKey(path: string): Promise<FilecoinGetAddrResponse>; sign(path: string, message: Uint8Array): Promise<FilecoinSignature>; }