Prueba DID
Enviado por test testing • 7 de Agosto de 2022 • Informe • 1.238 Palabras (5 Páginas) • 70 Visitas
Resultado:C:\ion>ion operation create
[pic 1] |
[pic 2] |
C:\ion>ion operation create
DID: did:ion:EiDb7s5PSzzwhoChGKY4urox6gVzkNRBpqerjzTyT5aV_g
Recovery private key saved as: EiDb7s5PSzzwhoChGKY4urox6gVzkNRBpqerjzTyT5aV_g-RecoveryPrivateKey.json
Siging private key saved as: EiDb7s5PSzzwhoChGKY4urox6gVzkNRBpqerjzTyT5aV_g-SigningPrivateKey.json
Create request body:
{
"type": "create",
"suffixData": {
"deltaHash": "EiCUCGbwUiKvzM_4dOVZDdYwnxz_Ey1JVH_PHKZEcbObPA",
"recoveryCommitment": "EiBN7IaMCJK669bqI6ziAeMmUTtfH4pFb4lKVqex3UJByg"
},
"delta": {
"updateCommitment": "EiAptjjOqj5ngKZvZHhEdhNK64ATveP2AS_fhliB881Gow",
"patches": [
{
"action": "replace",
"document": {
"publicKeys": [
{
"id": "signingKey",
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "XYMtlgpXuvzGyTKF5sYc6Qkw_bEH10neI6nsP98dv5Y",
"y": "Z7ScWT4Tsi9B6ojyEamE9TlAgvIHUip2GK06MpEMqQ8"
},
"purposes": [
"authentication",
"assertionMethod",
"capabilityInvocation",
"capabilityDelegation",
"keyAgreement"
]
}
],
"services": [
{
"id": "serviceId123",
"type": "someType",
"serviceEndpoint": "https://www.url.com"
}
]
}
}
]
}
}
Decoded suffix data:
{
deltaHash: 'EiCUCGbwUiKvzM_4dOVZDdYwnxz_Ey1JVH_PHKZEcbObPA',
recoveryCommitment: 'EiBN7IaMCJK669bqI6ziAeMmUTtfH4pFb4lKVqex3UJByg'
}
Decoded delta:
{
updateCommitment: 'EiAptjjOqj5ngKZvZHhEdhNK64ATveP2AS_fhliB881Gow',
patches: [ { action: 'replace', document: [Object] } ]
}
**************************
[pic 3] [pic 4] [pic 5] |
Figura 36. Publicación (POST) de la carga de pago y respuesta obtenida por parte de la red HTTP 200 (estado de éxito) { "@context": "https://w3id.org/did-resolution/v1", "didDocument": { "id": "did:ion:test:EiDb7s5PSzzwhoChGKY4urox6gVzkNRBpqerjzTyT5aV_g", "@context": [ "https://www.w3.org/ns/did/v1", { "@base": "did:ion:test:EiDb7s5PSzzwhoChGKY4urox6gVzkNRBpqerjzTyT5aV_g" } ], "service": [ { "id": "#serviceId123", "type": "someType", "serviceEndpoint": "https://www.url.com" } ], "verificationMethod": [ { "id": "#signingKey", "controller": "", "type": "EcdsaSecp256k1VerificationKey2019", "publicKeyJwk": { "kty": "EC", "crv": "secp256k1", "x": "XYMtlgpXuvzGyTKF5sYc6Qkw_bEH10neI6nsP98dv5Y", "y": "Z7ScWT4Tsi9B6ojyEamE9TlAgvIHUip2GK06MpEMqQ8" } } ], "authentication": [ "#signingKey" ], "assertionMethod": [ "#signingKey" ], "capabilityInvocation": [ "#signingKey" ], "capabilityDelegation": [ "#signingKey" ], "keyAgreement": [ "#signingKey" ] }, "didDocumentMetadata": { "method": { "published": false, "recoveryCommitment": "EiBN7IaMCJK669bqI6ziAeMmUTtfH4pFb4lKVqex3UJByg", "updateCommitment": "EiAptjjOqj5ngKZvZHhEdhNK64ATveP2AS_fhliB881Gow" }, "canonicalId": "did:ion:test:EiDb7s5PSzzwhoChGKY4urox6gVzkNRBpqerjzTyT5aV_g" } } |
...