pybitmessage.addresses module¶
Operations with addresses
-
encodeBase58
(num)[source]¶ Encode a number in Base X
Parameters: - num – The number to encode
- alphabet – The alphabet to use for encoding
-
decodeBase58
(string)[source]¶ Decode a Base X encoded string into the number
Parameters: - string – The encoded string
- alphabet – The alphabet to use for encoding
-
decodeVarint
(data)[source]¶ Decodes an encoded varint to an integer and returns it. Per protocol v3, the encoded value must be encoded with the minimum amount of data possible or else it is malformed. Returns a tuple: (theEncodedValue, theSizeOfTheVarintInBytes)