mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
Update toRateCommitment proc to use LE instead of BE
This commit is contained in:
parent
66007fe3ba
commit
3aa35cec71
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user