-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add vcdm 2.0 model and context #3436
base: main
Are you sure you want to change the base?
Add vcdm 2.0 model and context #3436
Conversation
Signed-off-by: PatStLouis <[email protected]>
… date with vcdm 1.1 Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some early review comments
@PatStLouis I think it might be wise to get this "basic" support merged and then worry about integration with DIDComm ICv2 and PPv2 in a future PR. |
@dbluhm I agree, I want at the minimum for the models not to break, since the didcomm protocols use the vc models |
Signed-off-by: PatStLouis <[email protected]>
…s-cloudagent-python into vcdm-2.0-data-model-support
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
…s-cloudagent-python into vcdm-2.0-data-model-support
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
Signed-off-by: PatStLouis <[email protected]>
@dbluhm ready for review |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick comment but otherwise looks good
holder = presentation["holder"] | ||
did = holder if isinstance(holder, str) else holder["id"] | ||
async with context.session() as session: | ||
wallet: BaseWallet | None = session.inject_or(BaseWallet) | ||
info = await wallet.get_local_did(did) | ||
key_type = info.key_type.key_type | ||
|
||
if key_type == "ed25519": | ||
options["proofType"] = "Ed25519Signature2020" | ||
elif key_type == "bls12381g2": | ||
options["proofType"] = "BbsBlsSignature2020" | ||
elif key_type == "p256": | ||
options["proofType"] = "EcdsaSecp256r1Signature2019" | ||
options["proofType"] = "Ed25519Signature2020" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why we removed this code; automatically determining the proof type by the key associated with the DID seems like a good idea.
Needs issuanceDate validation for vcdm 1.0 (add a current timestamp if absent)
Needs hooking up with didcomm