You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Digest is serialized as two felt252 elements, where first is lower 128 bit and second is higher 128 bit of its numeric representation. It should be noted that Digest -> u256 conversion is little-endian. In particular, for txid (and also block hash, merkle root) the hex string received from RPC/explorer would look the same as u256 integer in hex form. So it would be more natural to serialize the digest in LE as well, to simplify "off-circuit" implementations (e.g. in Python).
Context
Currently
Digest
is serialized as twofelt252
elements, where first is lower 128 bit and second is higher 128 bit of its numeric representation. It should be noted thatDigest -> u256
conversion is little-endian. In particular, for txid (and also block hash, merkle root) the hex string received from RPC/explorer would look the same as u256 integer in hex form. So it would be more natural to serialize the digest in LE as well, to simplify "off-circuit" implementations (e.g. in Python).Task
DigestHash
Depends on #229 (should be merged first)
The text was updated successfully, but these errors were encountered: