Skip to content

Commit

Permalink
store siblings in JSON as []bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Oct 12, 2023
1 parent 647e43d commit a695472
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/verifiable/proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class IssuerData {
...this,
mtp: {
existence: this.mtp?.existence,
siblings: this.mtp?.siblings,
siblings: this.mtp?.siblings.map((i) => i.string()),
nodeAux: this.mtp?.nodeAux
}
};
Expand Down Expand Up @@ -81,7 +81,11 @@ export class Iden3SparseMerkleTreeProof {
toJSON() {
return {
...this,
mtp: { existence: this.mtp.existence, siblings: this.mtp.siblings, nodeAux: this.mtp.nodeAux }
mtp: {
existence: this.mtp.existence,
siblings: this.mtp.siblings.map((i) => i.string()),
nodeAux: this.mtp.nodeAux
}
};
}
}
Expand Down

0 comments on commit a695472

Please sign in to comment.