Sovereign Identity Wallet
v0.1.3Self-hosted signing wallet: DIDs, agency grants, and task mandates for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wallet_did
Get the DID for the owner or agent identity in this wallet.
| Parameter | Type | Description |
|---|---|---|
role | string | Which identity |
wallet_onboard
Create the owner or agent identity (returns the existing one if present). Requires SI_WALLET_PASSPHRASE.
| Parameter | Type | Description |
|---|---|---|
role * | string | Which identity to create |
issue_grant
Owner issues an agency grant delegating authority to an agent DID (scopes + USD amount limit + TTL).
| Parameter | Type | Description |
|---|---|---|
agentDid * | string | Agent's did:key |
amountLimit * | number | Max USD the agent may commit |
scope * | array | Granted scopes, e.g. ['book_flight','read'] |
note | string | Human-readable note |
ttlDays | number | Grant lifetime in days |
mint_mandate
Agent mints a task mandate for a website audience, bound to an agency grant. Returns the mandate JWS and the Authorization header value. Amounts over $100 need confirmOverLimit=true (only after the owner explicitly approved). Pass subjectDid to delegate to a downstream agent (e.g. Muse delegating to Hermes) with narrowed scope/amount.
| Parameter | Type | Description |
|---|---|---|
audience * | string | Website audience, e.g. 'example.com' |
grantJws * | string | Agency-grant JWS from issue_grant (or a parent mandate JWS when delegating) |
scope * | array | Task scopes (must be a subset of the grant) |
amount | number | USD amount for this task |
confirmOverLimit | boolean | Owner confirmed amounts over $100 |
subjectDid | string | Downstream agent DID for delegation; defaults to this wallet's agent DID |
task | string | Human-readable task description |
ttlSec | number | Mandate lifetime in seconds |
verify_mandate
Website-side verification of a task mandate chain: signatures, expiry, audience, replay, grant binding, scope/amount confinement. Records the JTI in the local replay ledger on success.
| Parameter | Type | Description |
|---|---|---|
mandateJws * | string | Task mandate JWS |
expectedAudience | string | Audience this verifier expects |
verify_chain
Website-side verification of a multi-hop delegation chain (Owner → … → leaf agent): walks every link, enforcing parent signatures, parent-issued-to-signer binding, scope subset and amount confinement at each hop, expiry, leaf audience, and replay protection. Returns the full attenuated chain.
| Parameter | Type | Description |
|---|---|---|
mandateJws * | string | Leaf task mandate JWS |
expectedAudience | string | Audience this verifier expects |
pairwise_did
Generate a fresh pairwise DID for one audience (prevents cross-site correlation).
| Parameter | Type | Description |
|---|---|---|
audience * | string | Site or service this DID is for |