avalanche-docs icon indicating copy to clipboard operation
avalanche-docs copied to clipboard

Wrong signmessage format in tutorial

Open kanzure opened this issue 3 years ago • 1 comments

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

kanzure avatar Sep 23 '22 20:09 kanzure

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?

kanzure avatar Oct 03 '22 19:10 kanzure

Hi, any thoughts as to the four bytes for message length question above?

kanzure avatar Nov 13 '23 12:11 kanzure