diff --git a/src/MerkleDisclosureProof2021.ts b/src/MerkleDisclosureProof2021.ts index 68e3f64..7c1d871 100644 --- a/src/MerkleDisclosureProof2021.ts +++ b/src/MerkleDisclosureProof2021.ts @@ -85,14 +85,14 @@ export class MerkleDisclosureProof2021 { proof.rootNonce = merkleProof.rootNonce; // produce compact jws - const k = await (this.key as any).useJwa({ - detached: false, - header: { - // we don't need this here, but we will need it when multi message JWS is possible. - // kid: this.key.id, - }, - }); - const signer = k.signer(); + // const k = await (this.key as any).useJwa({ + // detached: true, + // header: { + // // we don't need this here, but we will need it when multi message JWS is possible. + // // kid: this.key.id, + // }, + // }); + const signer = this.key.signer(); const signature = await signer.sign({ data: Buffer.from(merkleProof.root, 'hex').toString('base64'), }); @@ -250,13 +250,13 @@ export class MerkleDisclosureProof2021 { return framed; } - const key: any = await JsonWebKey.from(framed); - return key.useJwa({ - detached: false, - header: { - // we don't need this here, but we will need it when multi message JWS is possible. - // kid: this.key.id, - }, - }); + return JsonWebKey.from(framed); + // return key.useJwa({ + // detached: true, + // header: { + // // we don't need this here, but we will need it when multi message JWS is possible. + // // kid: this.key.id, + // }, + // }); } }