Skip to content

Commit

Permalink
dlep code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Jan 23, 2025
1 parent 17fd33c commit 8281815
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/model/OutputData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ export class OutputData implements OutputDataLike {
}

toProof(sig: SerializedBlindedSignature, keyset: MintKeys) {
const dleq =
sig.dleq == undefined
? undefined
: ({
s: hexToBytes(sig.dleq.s),
e: hexToBytes(sig.dleq.e),
r: this.blindingFactor
// eslint-disable-next-line
} as DLEQ);
let dleq: DLEQ | undefined;
if (sig.dleq) {
dleq = {
s: hexToBytes(sig.dleq.s),
e: hexToBytes(sig.dleq.e),
r: this.blindingFactor
};
}
const blindSignature = {
id: sig.id,
amount: sig.amount,
Expand Down

0 comments on commit 8281815

Please sign in to comment.