Skip to content

Commit

Permalink
fix: Don't add BBS context to proof object
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jan 9, 2024
1 parent 14ea5cc commit ac4e1f8
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.danubetech.keyformats.jose.JWSAlgorithm;
import info.weboftrust.ldsignatures.LdProof;
import info.weboftrust.ldsignatures.canonicalizer.URDNA2015Canonicalizer;
import info.weboftrust.ldsignatures.jsonld.LDSecurityContexts;
import info.weboftrust.ldsignatures.suites.BbsBlsSignature2020SignatureSuite;
import info.weboftrust.ldsignatures.suites.SignatureSuites;
import io.ipfs.multibase.Multibase;
Expand Down Expand Up @@ -39,10 +38,6 @@ public static void sign(LdProof.Builder<? extends LdProof.Builder<?>> ldProofBui
byte[] bytes = signer.sign(signingInput, JWSAlgorithm.BBSPlus);
proofValue = Multibase.encode(Multibase.Base.Base58BTC, bytes);

// add JSON-LD context

ldProofBuilder.context(LDSecurityContexts.JSONLD_CONTEXT_W3ID_SECURITY_BBS_V1);

// done

ldProofBuilder.proofValue(proofValue);
Expand Down

0 comments on commit ac4e1f8

Please sign in to comment.