filecoin-project / filecoin-project/filecoin-docs

Add Info about ledger-filecoin-js features for developers

Open
#2,281 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
228
Forks
321
Avg merge
6d 9h
Merged PRs (30d)
1

Description

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:
- https://github.com/Zondax/ledger-filecoin/pull/130
- https://github.com/Zondax/ledger-filecoin/issues/118
- Test example: https://github.com/Zondax/ledger-filecoin/blob/main/tests_zemu/tests/standard.test.ts#L363

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.