fix readmes

This commit is contained in:
Cayo Puigdefabregas 2024-05-30 11:18:22 +02:00
parent 8eb0b70f0a
commit 5b0042fbf9
2 changed files with 9 additions and 1 deletions

View File

@ -61,6 +61,13 @@ An example of a credential is generated, which is the one that appears in the cr
python verify_vp.py presentation_signed.json
```
## creation of did document:
This command will create a json document and a url path where to place this document. The did must be a web did.
This document is an example and in production it must be adapted to contain the revoked verifiable credentials.
```sh
python did.py -k keypair.json -g did:web:localhost:did-registry:z6MkiNc8xqJLcG7QR1wzD9HPs5oPQEaWNcVf92QsbppNiB7C
```
# Use as a library
In the tests you can find examples of use. Now I will explain the usual cases

View File

@ -56,13 +56,14 @@ Se genera un ejemplo de credencial que es el que aparece en la plantilla credent
python sign_vp.py -k keypair.json -c credential_signed.json > presentation_signed.json
```
## verificat una presentación verificable:
## verificar una presentación verificable:
```sh
python verify_vp.py presentation_signed.json
```
## creación del documento did:
Este comando creara un documento json y una ruta url donde colocar este documento. El did tiene que ser un did web.
Este documento es un ejemplo y en producción hay que adaptarlo para contener las credenciales verificables revocadas.
```sh
python did.py -k keypair.json -g did:web:localhost:did-registry:z6MkiNc8xqJLcG7QR1wzD9HPs5oPQEaWNcVf92QsbppNiB7C
```