CSP-1 Confidential Terms Commitment & Stealth Announce
csp_commitment_createGenerates cryptographic commitments to commercial terms and formats ERC-5564 dual-key stealth address announcements (CSP-1) for invoice-scale B2B payments on Base L2.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_object": {
"invoice_id": "INV-402",
"line_items": [
{
"qty": 10,
"sku": "H100_HR"
}
],
"amount_usdc": 5000
}
},
"name": "csp_commitment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt_hex | No | Optional 32-byte salt (0x...). If omitted, cryptographically derived | |
| view_tag | No | Optional 1-byte hex view tag (0xNN) | |
| invoice_object | Yes | Structured invoice or commercial agreement object to commit to | |
| ephemeral_pubkey | No | Optional ephemeral public key for ERC-5564 announcement | |
| stealth_recipient | No | Optional Base L2 stealth recipient address for announcement |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| salt_hex | Yes | ||
| standard | Yes | ||
| announcement | No | ||
| canonical_jcs | No | ||
| invoice_commitment | Yes |