- Skill credential vocabulary: JSON-LD context document describing the vocabulary used for credential documents.
- Object model: Useful reference for understanding details of properties contained within a credential
- Data model: Some helpful notes on modeling credentials data and creating strong identifiers for entities involved in issuing skill credentials.
- Signing & Verification guide: Collection of details connected with signing and verification of credential objects
Cross-language signing and verification libraries are available in Python and JavaScript.
There is an implementation of credential signing and verification available in skillcreds-py
Using this library, one can sign a credential in a short snippet of code:
from skillcreds import signatures, suites
key_id = 'https://example.com/keys/exampleKey'
private_key, _ = load_key_pair(key_file)
signature = signatures.LinkedDataSignature(suites.RsaSignature2018())
signed_credential = signature.sign(credential, private_key, key_id)
There is an implementation of credential signing and verification available in skillcredjs
Using this library, one can sign a credential using the following snippet:
var sc = require('skillcreds');
var keyId = 'https://example.com/keys/exampleKey';
var privateKey = loadKeyPair(keyFile);
var signature = sc.signatures.LinkedDataSignature(sc.suites.RsaSignature2018());
var signedCredential = signature.sign(credential, privateKey, keyId);
You may be interested in reading the latest specification or the accompanying implementation guide