You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to sign a message using my Trezor One, which seems to work, but then fails when I try to verify it.
You can reproduce this by copy-pasting the below script on your command line. It simply signs a message with --trezor and then tries to verify it: Validation failed. Address 0xADDRESS did not sign this message.
This same script works well using --private-key or --ledger.
# Set the message
MESSAGE="some message"# Check the address that will be used for signingecho"Checking address with Trezor..."
SIGNER_ADDRESS=$(cast wallet address --trezor)echo"Signer Address: $SIGNER_ADDRESS"# Generate the signature using Trezorecho"Signing message $MESSAGE with Trezor..."
SIGNATURE=$(cast wallet sign "$MESSAGE" --trezor)echo"Signature: $SIGNATURE"# Verify the signature using the original messageecho"Verifying the signature..."
cast wallet verify --address "$SIGNER_ADDRESS""$MESSAGE""$SIGNATURE"
Thanks!
The text was updated successfully, but these errors were encountered:
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (b1f4684 2024-05-24T00:20:26.633676000Z)
What command(s) is the bug in?
cast wallet sign "message" --trezor
Operating System
macOS (Apple Silicon)
Describe the bug
I'm trying to sign a message using my Trezor One, which seems to work, but then fails when I try to verify it.
You can reproduce this by copy-pasting the below script on your command line. It simply signs a message with
--trezor
and then tries to verify it:Validation failed. Address 0xADDRESS did not sign this message.
This same script works well using
--private-key
or--ledger
.Thanks!
The text was updated successfully, but these errors were encountered: