Standalone VC Issue & Verify
The Cloud Agent Service supports the ability to sign and verify credentials with standalone APIs.
Sign a W3C Verifiable Credential
Linked Data Proof
mutation MyMutation {
signCredential(
input: {
signer: "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK"
format: {
w3c: {
credentialJson: "{\"@context\":[\"https://www.w3.org/2018/credentials/v1\"],\"type\":[\"VerifiableCredential\"],\"issuer\":\"did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK\",\"issuanceDate\":\"2024-01-01T00:00:00Z\",\"credentialSubject\":{\"id\":\"did:example:123\",\"name\":\"Alice\"}}"
securingMechanism: LINKED_DATA_PROOF
}
}
}
) {
... on SignW3CCredentialResult {
credentialJson
securedCredentialJson
}
}
}SD-JWT
Embed Credential Status
Verify a Verifiable Credential
Last updated