Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eshon opened this issue Jul 4, 2024 · 0 comments
Open

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

eshon opened this issue Jul 4, 2024 · 0 comments

Comments

@eshon
Copy link
Collaborator

eshon commented Jul 4, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant