mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 17:03:09 +00:00
feat: type mismatch improvement
This commit is contained in:
parent
2a6e76747e
commit
59443db6d9
@ -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