diff --git a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool index 0e6f9a455..fd783f264 100755 --- a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool +++ b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool @@ -2,7 +2,7 @@ # libtool - Provide generalized library-building support services. # Generated automatically by config.status (libbacktrace) version-unused -# Libtool was configured on host fv-az747-373: +# Libtool was configured on host fv-az180-278: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, diff --git a/waku/v2/protocol/waku_rln_relay/waku_rln_relay_utils.nim b/waku/v2/protocol/waku_rln_relay/waku_rln_relay_utils.nim index 6e29492b3..526bde8c6 100644 --- a/waku/v2/protocol/waku_rln_relay/waku_rln_relay_utils.nim +++ b/waku/v2/protocol/waku_rln_relay/waku_rln_relay_utils.nim @@ -178,11 +178,11 @@ proc createRLNInstance*(d: int = MerkleTreeDepth): RLNResult {.raises: [Defect, return res proc toUInt256*(idCommitment: IDCommitment): UInt256 = - let pk = UInt256.fromBytesBE(idCommitment) + let pk = UInt256.fromBytesLE(idCommitment) return pk proc toIDCommitment*(idCommitmentUint: UInt256): IDCommitment = - let pk = IDCommitment(idCommitmentUint.toBytesBE()) + let pk = IDCommitment(idCommitmentUint.toBytesLE()) return pk proc toMembershipIndex(v: UInt256): MembershipIndex = @@ -233,6 +233,7 @@ proc register*(idComm: IDCommitment, ethAccountAddress: Address, ethAccountPrivK debug "tx log data", arguments=arguments let argumentsBytes = arguments.hexToSeqByte() + # In TX log data, uints are encoded in big endian eventIdCommUint = UInt256.fromBytesBE(argumentsBytes[0..31]) eventIndex = UInt256.fromBytesBE(argumentsBytes[32..^1]) eventIdComm = eventIdCommUint.toIDCommitment()