feat(cli): add FRC-102 compatible EIP-191 signing via --fevm flag (#13256)#13388
Conversation
1178fb7 to
07c15b7
Compare
|
Hi all 👋 Just wanted to follow up on this PR. |
|
@hugomrdias @eshon @bumblefudge can you help us out here -- this PR does two things, it changes the default signature to be the version |
in this command we only care about 0x46 "personal_sign", filsnap and ledger only implement 0x46 for personal messages. yes, its a breaking change there no more unprefixed signatures exactly frc-0102 purpose https://github.com/hugomrdias/filecoin/blob/main/packages/iso-filecoin/src/wallet.js#L274-L285 |
OK, @aceppaluni would you mind please just removing the But then also, we need to fix the "verify" command to be the reverse of |
|
@aceppaluni : please fil any CI checks that are failing (e.g., gofmt) and then go ahead and mark "ready for review" (assuming other feedback has been incoporated). |
b7a7a9b to
70006d9
Compare
Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: Angelina <aceppaluni@gmail.com>
70006d9 to
44474fd
Compare
Apply the FRC-0102 "Filecoin Signed Message" envelope by default when signing arbitrary messages, ensuring compatibility with Ledger, FilSnap, and iso-filecoin. Add --raw flag to preserve raw signing for backward compatibility. Fixes filecoin-project#13256 Fixes filecoin-project#13373
|
I've just noticed we have 3 issues that this will close:
So to get them off the board I've been a bit heavy handed in here and did a bunch of clean up, expanded tests, got the prefix correct (I think it got messed up somewhere in a merge/rebase) and a Thanks for the work on this @aceppaluni. |
* fix(grammar): fix article usage in comments (filecoin-project#13465) fix grammar in comments * chore: bump filecoin-ffi to v1.34.5 (filecoin-project#13466) chore: bump filecoin-ffi to v1.34.5 * chore: fix method name (filecoin-project#13468) Signed-off-by: oncecelll <oncecell@outlook.com> * feat(cli): implement FRC-0102 signing envelope for wallet sign/verify (filecoin-project#13388) Apply the FRC-0102 "Filecoin Signed Message" envelope by default when signing arbitrary messages, ensuring compatibility with Ledger, FilSnap, and iso-filecoin. Add --raw flag to preserve raw signing for backward compatibility. Fixes filecoin-project#13256 Fixes filecoin-project#13373 --------- Signed-off-by: Angelina <aceppaluni@gmail.com> Co-authored-by: Rod Vagg <rod@vagg.org> * feat: add ordering by nonce flag to get sequential messages (filecoin-project#13394) * fix: skip sender * feat: remove maybe-modify-actor * chore: removed unused args * chore: updated filecoin-ffi gitmodule with new apply message for simulation function https://github.com/nijoe1/filecoin-ffi/tree/feat/apply-message-for-simulation --------- Signed-off-by: oncecelll <oncecell@outlook.com> Signed-off-by: Angelina <aceppaluni@gmail.com> Co-authored-by: Aliz Fara <alizfaraafa@gmail.com> Co-authored-by: Phi-rjan <orjan.roren@gmail.com> Co-authored-by: oncecelll <oncecell@outlook.com> Co-authored-by: aceppaluni <113948612+aceppaluni@users.noreply.github.com> Co-authored-by: Rod Vagg <rod@vagg.org> Co-authored-by: Sambhav Jain <136801346+DarkLord017@users.noreply.github.com>
* fix(grammar): fix article usage in comments (filecoin-project#13465) fix grammar in comments * chore: bump filecoin-ffi to v1.34.5 (filecoin-project#13466) chore: bump filecoin-ffi to v1.34.5 * chore: fix method name (filecoin-project#13468) Signed-off-by: oncecelll <oncecell@outlook.com> * feat(cli): implement FRC-0102 signing envelope for wallet sign/verify (filecoin-project#13388) Apply the FRC-0102 "Filecoin Signed Message" envelope by default when signing arbitrary messages, ensuring compatibility with Ledger, FilSnap, and iso-filecoin. Add --raw flag to preserve raw signing for backward compatibility. Fixes filecoin-project#13256 Fixes filecoin-project#13373 --------- Signed-off-by: Angelina <aceppaluni@gmail.com> Co-authored-by: Rod Vagg <rod@vagg.org> * feat: add ordering by nonce flag to get sequential messages (filecoin-project#13394) * fix: skip sender * feat: remove maybe-modify-actor * chore: removed unused args * chore: updated filecoin-ffi gitmodule with new apply message for simulation function https://github.com/nijoe1/filecoin-ffi/tree/feat/apply-message-for-simulation --------- Signed-off-by: oncecelll <oncecell@outlook.com> Signed-off-by: Angelina <aceppaluni@gmail.com> Co-authored-by: Aliz Fara <alizfaraafa@gmail.com> Co-authored-by: Phi-rjan <orjan.roren@gmail.com> Co-authored-by: oncecelll <oncecell@outlook.com> Co-authored-by: aceppaluni <113948612+aceppaluni@users.noreply.github.com> Co-authored-by: Rod Vagg <rod@vagg.org> Co-authored-by: Sambhav Jain <136801346+DarkLord017@users.noreply.github.com>
Related Issues
This PR aims to fix Issue #13256
Proposed Changes
This PR updates the
lotus wallet signcommand to implement FRC-102, allowing users to sign messages with an EIP-191 (Ethereum-style) prefix for FEVM compatibility.Additional Info
--fevmflag towallet signcommand.Checklist
Before you mark the PR ready for review, please make sure that: