@cra-agent/identity
v0.0.20
Published
Signing and seller identity for agent payments on Arc: explicit signature scheme, ERC-8004 resolution that fails closed, RPC endpoint selection.
Maintainers
Readme
@cra-agent/identity
Three small things an agent rail needs on Arc.
npm i @cra-agent/identityA signer with an explicit scheme. createSigner({ scheme: "secp256k1", privateKey }). The scheme is a parameter on purpose: post-quantum signing is reserved and throws today rather than pretending.
ERC-8004 identity, failing closed. createErc8004Resolver({ network, rpcUrl }) answers whether an address is an agent's owner or the wallet an agent declared for payments, and which agent ids. The registry is live on Arc mainnet (0x8004A169…a432, the ERC-8004 canonical address) and testnet. An error on the ownership check means "not verified"; if only the registry list is unreachable, ownership alone decides.
An RPC endpoint that is answering.
import { pickRpcUrl, mergeRpcLists, PUBLIC_RPCS, CHAIN_IDS } from "@cra-agent/identity";
const url = await pickRpcUrl(mergeRpcLists(["https://my-node.example"], PUBLIC_RPCS.arc), CHAIN_IDS.arc);Candidates are tried at once and the highest-priority healthy one wins. Healthy means the right chain id and a head that keeps up with the others. The public list is ordered by failures we measured over 24 hours, because all four endpoints pass a liveness check while some of them refuse calls.
Part of CRA AGENT
Payments for AI agents on Arc, Circle's USDC-native L1. Site: cra-agent.tech · Source: github.com/giupy997/arcagentx402 · MIT
