diff --git a/src/apps/monero/xmr/serialize/base_types.py b/src/apps/monero/xmr/serialize/base_types.py index dcebd4cd1..30cc0ec4e 100644 --- a/src/apps/monero/xmr/serialize/base_types.py +++ b/src/apps/monero/xmr/serialize/base_types.py @@ -1,5 +1,5 @@ class XmrType: - VERSION = 0 + pass class UVarintType(XmrType): @@ -12,21 +12,5 @@ class IntType(XmrType): VARIABLE = 0 -class BoolType(IntType): - WIDTH = 1 - - class UInt8(IntType): WIDTH = 1 - - -class UInt32(IntType): - WIDTH = 4 - - -class UInt64(IntType): - WIDTH = 8 - - -class SizeT(UInt64): - WIDTH = 8 diff --git a/src/apps/monero/xmr/serialize/int_serialize.py b/src/apps/monero/xmr/serialize/int_serialize.py index e3dfd1eff..a965f6b8d 100644 --- a/src/apps/monero/xmr/serialize/int_serialize.py +++ b/src/apps/monero/xmr/serialize/int_serialize.py @@ -74,24 +74,6 @@ def dump_uvarint_b_into(n, buffer, offset=0): return buffer -def load_uint_b(buffer, width): - """ - Loads fixed size integer from the buffer - """ - result = 0 - for idx in range(width): - result += buffer[idx] << (8 * idx) - return result - - -def dump_uint_b(n, width): - """ - Serializes fixed size integer to the buffer - """ - buffer = bytearray(width) - return dump_uvarint_b_into(n, buffer, 0) - - def dump_uint_b_into(n, width, buffer, offset=0): """ Serializes fixed size integer to the buffer