Update toRateCommitment proc to use LE instead of BE

This commit is contained in:
stubbsta 2025-06-11 10:36:08 +02:00
parent 66007fe3ba
commit 3aa35cec71

View File

@ -27,7 +27,7 @@ type
RawRateCommitment* = seq[byte] RawRateCommitment* = seq[byte]
proc toRateCommitment*(rateCommitmentUint: UInt256): RawRateCommitment = proc toRateCommitment*(rateCommitmentUint: UInt256): RawRateCommitment =
return RawRateCommitment(@(rateCommitmentUint.toBytesBE())) return RawRateCommitment(@(rateCommitmentUint.toBytesLE()))
# Custom data types defined for waku rln relay ------------------------- # Custom data types defined for waku rln relay -------------------------
type RateLimitProof* = object type RateLimitProof* = object