@parallel-protocol/payment-core
v0.1.0
Published
Parallel Protocol shared payment-authorization primitives — EIP-3009 / EIP-712, address schemas, and the signed payment payload reused by x402 and MPP
Downloads
261
Readme
@parallel-protocol/payment-core
Shared payment-authorization primitives for the Parallel Protocol payment
packages. Protocol-neutral — consumed by both @parallel-protocol/x402-types
(x402 wire) and @parallel-protocol/mpp-types (MPP wire), as well as the
facilitator and payer.
Contains:
- EIP-712 domain + typehashes (
buildEip712Domain,TRANSFER_WITH_AUTHORIZATION_TYPES,RECEIVE_WITH_AUTHORIZATION_TYPES, swap typehashes). - EIP-3009 authorization helpers (
TransferAuthorization,buildAuthorizationMessage,generateNonce, typed-data builders). - Address / hex schemas (
AddressSchema,SignatureSchema,Bytes32Schema,hexBytes). SignedPaymentPayload— the signed authorization object reused verbatim by both x402 and the MPPevmcharge method (theauthorizationcredential type).
Subpath exports: @parallel-protocol/payment-core/eip712, /eip3009.
