rocklabs-io/ic-py

why is `0x` added to account ids?

Closed this issue · 2 comments

when i stringify an account identifier, 0x is added. i have to manually remove because appliations on the IC don't work with the 0x prefix. can it be removed by default and added only when explicitly stated?

You can use the method bytes to get the bytes format. Then use hex to get the string without 0x.

yes, i can also remove the first two chars of the string ^^ but i'm wondering why you add it in the first place?