Comments (3)
Trezor does not allow signing arbitrary message bytes. If you're using EthereumSignMessage
, you are getting a signature for "\x19Ethereum Signed Message:\n" ‖ str(len(b)) ‖ b
, where b
is your message bytes. You can of course stuff DER-encoded data in there, but the signature is not over DER.
The returned signature from ethereumSignMessage
is 65 bytes:
- first 32 bytes are the value of
r
in big endian order - following 32 bytes are the value of
s
in big endian order - last byte is value of
v
You can use any publicly available DER encoding library to encode the (r, s)
pair and get back what is usually considered a "DER signature".
It would be helpful to know what your actual usecase is. Wouldn't it be better to just use one of the existing standards, such as EIP-712, which will be included in Trezor soon?
from connect.
cc @matejcik @prusnak any idea, please?
from connect.
Thank you for the clarification.
We finally went for a more general purpose device that that better suits signining arbitrary bytes (YubiKey).
from connect.
Related Issues (20)
- Webusb does not work when in Google chrome incognito mode HOT 2
- pop up confirmation screen disappears in a few seconds - transaction fails HOT 3
- Unknown addresses returned from getAccountInfo advanced HOT 3
- coins: Correct decred block time. HOT 2
- Soluisi yang terbaik HOT 1
- Cardano Catalyst registration documentation HOT 2
- Accessing transaction history for active addresses HOT 1
- Access account that was generated using derivation path HOT 5
- Does Trezor support Goerli? HOT 3
- Problems connecting to Ronin Wallet HOT 1
- Can not sign transactions, fw 2.4.2 HOT 2
- Ethereum breaking changes 2.4.1 - 2.4.2 HOT 1
- SignMessage updates
- Failed Transaction: Error: Device Call In Progress HOT 2
- v8.2.3-extended failing with "Transport is missing" HOT 6
- stellarSignTransaction did not return the correct signature HOT 24
- Code cleanup
- EthereumGetAddress checksum HOT 6
- Trezor Authorization error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect.