Closed molekilla closed 2 years ago
you have to keep littleEndian for span serialization of swarm hashes, and create a helper method to serialize the span value into bigEndian if you need.
Even better would be maybe a breaking change, where we keep spanValue
as number | BigInt
, but for that, you have to make the span serialization in the logic.
Reference: https://github.com/fairDataSociety/bmt-js/issues/10