Skip to content

Commit

Permalink
fix node_aux
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Jul 18, 2023
1 parent 0562ec5 commit 1cabc5e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/credentials/status/sparse-merkle-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ export class RevocationStatusDTO {
toRevocationStatus(): RevocationStatus {
const p = new Proof();
p.existence = this.mtp.existence;
p.nodeAux = {
key: newHashFromBigInt(BigInt(this.mtp.node_aux.key)),
value: newHashFromBigInt(BigInt(this.mtp.node_aux.value))
};

if (this.mtp.node_aux) {
p.nodeAux = {
key: newHashFromBigInt(BigInt(this.mtp.node_aux.key)),
value: newHashFromBigInt(BigInt(this.mtp.node_aux.value))
};
}
const s = this.mtp.siblings.map((s) => newHashFromBigInt(BigInt(s)));

p.siblings = [];
Expand Down

0 comments on commit 1cabc5e

Please sign in to comment.