Closed mattcollier closed 5 years ago
The target should be authentication
.
The updated document should look like this:
{
"@context": "https://w3id.org/veres-one/v1",
"id": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF",
"authentication": [
{
"type": "Ed25519SignatureAuthentication2018",
"publicKey": [
{
"id": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF#authn-key-1",
"type": "Ed25519VerificationKey2018",
"owner": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF",
"publicKeyBase58": "7tJdgUebDRaVFR2d8LzV9BK7RMz5aw2AuW5LsEBBAKWs"
}
]
},
{
"type": "Ed25519SignatureAuthentication2018",
"publicKey": [
{
"id": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF#authn-key-1",
"type": "Ed25519VerificationKey2018",
"owner": "did:v1:test:nym:z279wWXz4nugfh2XATAnFQkqaoSg97AWyNbsvdpr8hujamKJ",
"publicKeyBase58": "EnRtAnazrZFd4ZHy2bFwVDCGDbHaFkPhNkSukEQVPTU8"
}
]
}
],
"capabilityDelegation": [
{
"type": "Ed25519SignatureCapabilityAuthorization2018",
"publicKey": [
{
"id": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF#ocap-delegate-key-1",
"type": "Ed25519VerificationKey2018",
"owner": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF",
"publicKeyBase58": "CWERGaLLTsWGAKzpTKpHs9WyZ5Xczgj8HSbcZ7FjGAtQ"
}
]
}
],
"capabilityInvocation": [
{
"type": "Ed25519SignatureCapabilityAuthorization2018",
"publicKey": [
{
"id": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF#ocap-invoke-key-1",
"type": "Ed25519VerificationKey2018",
"owner": "did:v1:test:nym:z279nCCZVzxreYfLw3EtFLtBMSVVY2pA6uxKengriMCdG3DF",
"publicKeyBase58": "5U6TbzeAqQtSq9N52XPHFrF5cWwDPHk96uJvKshP4jN5"
}
]
}
]
}
@dlongley ty.
There was an error in the didDocument validation schema which resulted in some of the tests passing when they should have failed. One of the tests updates the DID document which produces the results below. The update is designed to add an additional publicKey to
authentication
. The update is a document containtingtype
andpublicKey
. That sort of document would work ifauthentication
were the update target, butauthentication.publicKey
has been targeted instead.Notice the discrepancy between
authentication.publicKey[0]
andauthentication.publicKey[1]
in the DID document below..So is the update document correct and the target is wrong, is the target is correct and the update document is incorrect?