Converts a positive integer to the smallest possible representation in a binary digit representation
Value to encode
Encoded number
This function is out of the sdk scope. Copy implementation from sdk if necessary.
Converts a positive integer to the smallest possible representation in a binary digit representation