Credentials Library
Library to interact with Verifiable Credentials
The Zenroom VM is used : https://github.com/lorena-ssi/zenroom-lib
Add an organization
const credentials = let org = "did:lor:lab:1000" let keypair = await zenroom await org const pubKey = keypair'issuerID'keypairpublic_key let check = await org // check is True
This is the process so far.
- First we create an org object with the DID associated to it.
- Then we create a new Keypait with Zenroom (or maybe we can reuse any key previously sotred in your wallet.)
- We can now Sign the credential.
- Verify
Json Result
Set the member of this organizatio0n
let org = "did:lor:lab:1000" orgname'Caelum Labs' let developer = 'did:lor:lab:1001' developer org // Now you can sign it and send it.
Create one action
let action = "did:lor:lab:1000" 20 let agent = 'did:lor:lab:1001' action // Now you can sign it and send it.