Create a Verifiable Presentation
When to use
A verifier has asked you for a presentation — typically by sharing a Proof Request URL/QR (see §5.2). You want to compile one or more of your VCs into a signed VP and submit it.
Before you begin
- The verifier’s Proof Request (a Presentation Definition per DIF Presentation Exchange v2).
- The VCs that satisfy the request.
Steps
- Open the Proof Request (URL or QR scan in the wallet).
- The portal/wallet matches the request against your held VCs and shows you which credentials would satisfy each input descriptor.
3. Approve. The portal calls
POST /api/v1/presentations/create(vc.go:316). - The API:
- Fetches the named VCs.
- Constructs a VP envelope.
- Signs the VP with your DID’s authentication key.
- Returns the VP JSON.
- The portal/wallet then submits the VP to the verifier (typically via
POST /api/v1/presentations/verifyon the verifier’s side, or a callback URL specified in the Proof Request).
API & SDK
Response (truncated):
Verify
The verifier’s portal will show “Presentation received → verifying…” and within ~1 s display the verdict. You should see a matching record in your own /presentations/history (if surfaced — currently part of §5.4 Verification History for the verifier side).
Troubleshooting
3.2.5. Checking a Credential’s Revocation Status ##### When to use
You hold a credential and want to confirm it has not been revoked. The status check is also performed automatically every time you open a credential’s detail page.
Before you begin
You have a credential ID.
Steps (manual)
(No auth needed — this endpoint is public, registered at router.go:68.)
Response:
How it works under the hood
The handler reads the bit at the credential’s statusListIndex from the RevocationRegistry contract. Bit 1 = revoked, bit 0 = active. See §4.4.3 for the bitstring encoding.