@ledgerhq/coin-filecoin
Version:
Ledger Filecoin Coin integration
20 lines (18 loc) • 564 B
text/typescript
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>;
}