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
Right now ANS (Avian Name System) is serialized directly into ASCII hex, using valuable blockchain space. The less space used, the more scalable ANS is.
Right now to serialize ANS17f00000 will look like:
414E533137663030303030
Which is longer then the actual ID.
It is proposed to use a custom format to serialize different types of ANS IDs (which will introduce slight overhead but reduce space used).
To serialize ANS17f00000 in the new format:
17F00000
There is no need to encode the prefix since we know it will be ANS data and therefore we only need the type hex and IPv4 in hex.
Old format for ANS0RXBurnXXXXXXXXXXXXXXXXXXXXXXWUo9FV:
Right now ANS (Avian Name System) is serialized directly into ASCII hex, using valuable blockchain space. The less space used, the more scalable ANS is.
Right now to serialize
ANS17f00000
will look like:Which is longer then the actual ID.
It is proposed to use a custom format to serialize different types of ANS IDs (which will introduce slight overhead but reduce space used).
To serialize
ANS17f00000
in the new format:There is no need to encode the prefix since we know it will be ANS data and therefore we only need the type hex and IPv4 in hex.
Old format for
ANS0RXBurnXXXXXXXXXXXXXXXXXXXXXXWUo9FV
:New format for
ANS0RXBurnXXXXXXXXXXXXXXXXXXXXXXWUo9FV
:For serializing, use the raw hex of the Base58 string.
It is important that encoding/decoding these ANS IDs are fast and safe.
The text was updated successfully, but these errors were encountered: