Skip to content
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

Update did ssi module #31

Merged
merged 2 commits into from
Feb 11, 2022
Merged

Update did ssi module #31

merged 2 commits into from
Feb 11, 2022

Conversation

arnabghose997
Copy link
Contributor

No description provided.

@arnabghose997 arnabghose997 self-assigned this Feb 11, 2022
@arnabghose997
Copy link
Contributor Author

Following is the scenario for update-did where the DID doesn't exists:

Valid update-did CLI

hid-noded tx ssi update-did  '{
"context": [
"https://www.w3.org/ns/did/v1",
"https://schema.org"
],
"type": "https://schema.org/Person",
"id": "did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51",
"name": "Vishwas",
"publicKey": [
{
"context": "https://w3id.org/security/v2",
"id": "did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51#key1",
"type": "Ed25519VerificationKey2020",
"publicKeyBase58": "zEJuPAFyH8vYTNiV7mzVdc93QrQeGFTy2JGmHn89qC4mr"
}
],
"authentication": [
"did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51#key1"
],
"assertionMethod": [
"did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51#key1"
],
"keyAgreement": [
"did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51#key1"
],
"capabilityInvocation": [
"did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51#key1"
],
"created": "2021-04-06T14:13:14.018Z",
"updated": "2021-04-06T14:13:14.018Z"
}' did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51#key1 --ver-key 72xLgsLCnjHwkFouJJy4taIKvqAXIRGoopyA3BX2i9/FvghKTFvPzj6mApmFh9U2hW3iivlo785PXMeCtfPxjQ== --from alice --chain-id hidnode

Response:

raw_log: 'failed to execute message; message index: 0: DID doesnt exists did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51:
  key not found'

@arnabghose997 arnabghose997 merged commit e34dcd2 into main Feb 11, 2022
@arnabghose997 arnabghose997 deleted the update-did-ssi-module branch February 21, 2022 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant