@p-acp/settlement-solana
v0.5.0
Published
This package implements the settlement-solana responsibilities of the Private Agent Commerce Protocol. It prepares recipient-bound unsigned plans, verifies expiry and replay state, simulates through caller-provided RPC adapters, and preserves external wal
Downloads
1,546
Readme
@p-acp/settlement-solana
This package implements the settlement-solana responsibilities of the Private Agent Commerce Protocol. It prepares recipient-bound unsigned plans, verifies expiry and replay state, simulates through caller-provided RPC adapters, and preserves external wallet approval as the signing boundary.
Plan API
createUnsignedSettlementPlanvalidates the intended recipient, fee payer, authorization lifetime and unused nonce before wallet review.verifyUnsignedSettlementPlanreports binding substitutions or replay state without signing.assertUnsignedSettlementPlanrejects any mismatch before wallet handoff.
See the unsigned settlement-plan guide and runnable example:settlement flow.
Boundaries
- No wallet custody or private-key handling.
- Private payloads remain behind adapter interfaces.
- Canonical commitments are deterministic and domain-separated.
- Invalid role, state, recipient, expiry, and replay paths are explicit.
