Binary format: edits per review

This commit is contained in:
mDuo13
2025-07-07 14:33:40 -07:00
parent 81d7531c41
commit 08558478e4
4 changed files with 677 additions and 239 deletions

View File

@@ -407,8 +407,8 @@ def uint192_to_bytes(i):
def uint384_to_bytes(i):
b = hex_to_bytes(i)
if len(b) != 8: # 8 bytes = 64 bits
raise ValueError("UInt64 is not 64 bits long")
if len(b) != 48: # 48 bytes = 384 bits
raise ValueError("UInt384 is not 384 bits long")
return b
def vector256_to_bytes(strlist):