Open marc4virono opened 2 years ago
Hello @marc4virono, thanks for opening this issue!
You are 100% correct that a Bbs/Bls selective disclosure feature is not yet supported by the library. It would be great if you implement it, your general approach looks good! Feel free to go ahead with this and let us know if have any more questions/thoughts while working on it..
Hi, I am implementing it. I edited also this lib https://github.com/danubetech/key-formats-java.
Great, let us know whenever you have something ready that you want us to review (in either key-formats-java or ld-signatures-java).
Hi, I have something, but I need to finalize some test. A quick question about JsonWebSignature2020LdSigner. How it's work ? I am not sure that this signer is ready
Hmm I think JsonWebSignature2020LdSigner
should work just fine, what's the issue with it? E.g. try this:
JsonLDObject jsonLdObject = JsonLDObject.fromJson(new FileReader("input.jsonld"));
byte[] testEd25519PrivateKey = Hex.decodeHex("984b589e121040156838303f107e13150be4a80fc5088ccba0b0bdc9b1d89090de8777a28f8da1a74e7a13090ed974d879bf692d001cddee16e4cc9f84b60580".toCharArray());
JsonWebSignature2020LdSigner signer = new JsonWebSignature2020LdSigner(new Ed25519_EdDSA_PrivateKeySigner(testEd25519PrivateKey));
signer.setCreated(new Date());
signer.setProofPurpose(LDSecurityKeywords.JSONLD_TERM_ASSERTIONMETHOD);
signer.setVerificationMethod(URI.create("https://example.com/jdoe/keys/1"));
signer.setDomain("example.com");
signer.setNonce("343s$FSFDa-");
LdProof ldProof = signer.sign(jsonLdObject);
System.out.println(jsonLdObject.toJson(true));
Alright perfect, nothing I just had not understood correctly how it's work. I believed that something was missing, but not. Does it support ES256 and ES384 as https://w3c-ccg.github.io/lds-jws2020/ ?
Hi,
I am interested to do some selective disclosure by using the Bbs algorithm. I noticed that this Bbs/Bls feature is not supported by your library. So I am trying to implement it.
Are you agree if I do this :
byte[][]
for the result of canonicalization function and it will contain the hash of each canonicalized attribute Example :