filecoin-project / filecoin-docs

Filecoin Docs
https://docs.filecoin.io
218 stars 293 forks source link

Add Info about ledger-filecoin-js features for developers #2281

Open eshon opened 2 months ago

eshon commented 2 months ago

https://github.com/Zondax/ledger-filecoin-js?tab=readme-ov-file#available-commands

"Sign arbitrary amount of raw_bytes" was added to the Filecoin Ledger app to enable proving ownership of a private key. It needs some kind of prefix to indicate it's raw bytes.

Prefix has to be "Filecoin Sign Bytes:\n" + raw_bytes_data" see https://github.com/Zondax/ledger-filecoin/blob/main/tests_zemu/tests/standard.test.ts#L462-L464 and max size is 1MB

Related: