mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-14 03:43:10 +00:00
feat: type mismatch improvement
This commit is contained in:
parent
29e0eb3660
commit
8aba37bdeb
@ -175,7 +175,7 @@ method verifyProof*(
|
||||
|
||||
method generateProof*(
|
||||
g: GroupManager,
|
||||
data: openArray[byte],
|
||||
data: seq[byte],
|
||||
epoch: Epoch,
|
||||
messageId: MessageId,
|
||||
rlnIdentifier = DefaultRlnIdentifier,
|
||||
|
||||
@ -241,7 +241,7 @@ method withdrawBatch*(
|
||||
|
||||
method generateProof*(
|
||||
g: OnchainGroupManager,
|
||||
data: openArray[byte],
|
||||
data: seq[byte],
|
||||
epoch: Epoch,
|
||||
messageId: MessageId,
|
||||
rlnIdentifier = DefaultRlnIdentifier,
|
||||
@ -271,11 +271,11 @@ method generateProof*(
|
||||
identity_nullifier: g.idCredentials.get().idNullifier,
|
||||
merkle_proof: merkleProof,
|
||||
external_nullifier: epoch,
|
||||
signal: toSeq(data),
|
||||
signal: data,
|
||||
message_id: messageId,
|
||||
rln_identifier: rlnIdentifier,
|
||||
)
|
||||
let serializedWitness = SerializeWitness(witness)
|
||||
let serializedWitness = serialize(witness)
|
||||
var inputBuffer = toBuffer(serializedWitness)
|
||||
|
||||
# Generate the proof using the new zerokit API
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user