decentralized-identity / EcdsaSecp256k1RecoverySignature2020

EcdsaSecp256k1RecoverySignature2020
https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/docs/
Apache License 2.0
9 stars 13 forks source link

Add JSON-LD context for signature #9

Closed clehner closed 3 years ago

clehner commented 3 years ago

When using EcdsaSecp256k1RecoverySignature2020, I found additional JSON-LD context to be needed for signing and verifying proofs, in order for properties such as proofPurpose to be expanded.

In the Credentials base context, context for these properties is defined within the context of the proof types like EcdsaSecp256k1Signature2019. In a new proof/signature type, it seems they must be defined again, until there is a new version of the credentials based context that includes the needed properties at the top level. In this PR I reuse the context definitions proof types from JsonWebSignature2020. This appears the same as in the Credentials base context but without using compact URIs for sec: and xsd:.

clehner commented 3 years ago

Closed since this is a breaking change. Better would probably be to add a new context file.