-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EIP-0004] Give reference of algorithm intToVlq
#13
Comments
scalahub
changed the title
Give reference of algorithm
[EIP-0004] Give reference of algorithm Jun 5, 2020
intToVlq
and test vectorsintToVlq
and test vectors
scalahub
changed the title
[EIP-0004] Give reference of algorithm
[EIP-0004] Give reference of algorithm Jun 7, 2020
intToVlq
and test vectorsintToVlq
FYI, it is Base 128 Varints encoding - https://developers.google.com/protocol-buffers/docs/encoding, not VLQ |
From testing and minting NFT's that match anon_real's implementation on auctionhouse, I think it is VLQ. Sample Java below;
N.B. If encoding a hex string, halve the value of it's string length that you feed into this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In EIP-0004, the encoding in R4 is given as
'\x0e' + intToVlq(byteArray.length) + byteArray
Would be good to have a link or a code snippet explaining how to implement
intToVlq
The text was updated successfully, but these errors were encountered: