avalanche-docs
avalanche-docs copied to clipboard
Wrong signmessage format in tutorial
The tutorial says the prefix should be: 0x1AAvalanche Signed Message:\n
https://github.com/ava-labs/avalanche-docs/blob/master/docs/community/tutorials-contest/2021/red-dev-sig-verify-tutorial/README.md
The documentation says that the prefix should be a single byte 0x1a (which you can write as"\x1a" in a string) and not 4 bytes ("0x1a").
https://docs.avax.network/specs/cryptographic-primitives
Also, why four bytes for the message length, instead of the VarInt or CompactSize that bitcoin uses? Is this meant to be some sort of explicit deviation from what other coins are doing?
Hi, any thoughts as to the four bytes for message length question above?