Re-use proofValue
from DataIntegrityProof instead of jws
#25
Comments
+1 |
Here are a few options. The first is an attempt to re-use DataIntegrityProof, which would require encoding some sort of flattened JWS JSON Serialization into {
"type": "DataIntegrityProof",
"cryptosuite": "jws-2022",
"created": "2022-11-29T20:35:38Z",
"verificationMethod": "did:example:123456789abcdefghi#keys-1",
"proofPurpose": "assertionMethod",
"proofValue": "uDtEhU3ljbEg8L38VWAfUAqOyKAM6-Xx-F4GawxaepmXFCgfTjDxw5djxLa8ISlSApmWQxfKTUJqPP3-Kg6NU1Q"
} The second option is to try and add a multibase encoding {
"type": "DataIntegrityProof",
"cryptosuite": "jws-2022",
"created": "2022-11-29T20:35:38Z",
"verificationMethod": "did:example:123456789abcdefghi#keys-1",
"proofPurpose": "assertionMethod",
"proofValue": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MJ5GwWRMsadCyLNXU_flgJtsS32584MydBxBuygps_cM0sbU3abTEOMyUvmLNcKOwOBE1MfDoB1_YY425W3sAg"
} The third option is to loosen the restriction on {
"type": "DataIntegrityProof",
"cryptosuite": "jws-2022",
"created": "2022-11-29T20:35:38Z",
"verificationMethod": "did:example:123456789abcdefghi#keys-1",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MJ5GwWRMsadCyLNXU_flgJtsS32584MydBxBuygps_cM0sbU3abTEOMyUvmLNcKOwOBE1MfDoB1_YY425W3sAg"
} I'm leaning towards option 3, unless someone else can think of a better way of taking advantage of /cc @dlongley |
I've added a label to track changes that we would make based on data integrity, we can make them before it stabilizes, but I prefer to just wait and gather a larger group to do all at once. |
As a related aside, I'm hoping to simplify the text that needs to be written in cryptosuite specs and will provide an example w/ the new |
We should discuss whether it's better to use
proofValue
from DataIntegrityProof instead ofjws
. There are upsides and downsides to both approaches. We might also explore ifJsonWebSignature2020
should be renamed toJsonWebSignature
orDataIntegrityProof
.The text was updated successfully, but these errors were encountered: