ack_sign_credential
Sign a W3C Verifiable Credential into a JWT by providing credential JSON, signer JWK, and signer DID. The resulting JWT can be verified later.
Instructions
Sign a W3C Verifiable Credential, returning a signed JWT string. Pass the JSON output from ack_create_controller_credential or ack_create_payment_receipt as the credential parameter. The resulting JWT can be verified with ack_verify_credential or ack_verify_payment_receipt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"credential": "<credential>",
"signerJwk": "<signerJwk>",
"signerDid": "<signerDid>"
},
"name": "ack_sign_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signerDid | Yes | DID of the signer (must match the JWK) | |
| signerJwk | Yes | JWK JSON string containing the signer's private key (from ack_generate_keypair or any valid private key JWK) | |
| credential | Yes | JSON string of the W3C credential to sign (output from ack_create_controller_credential or ack_create_payment_receipt) |