The EVM and Starknet verifiers mirror registry version 5 of the Solana program, with the same node slots. Older verifier addresses are deprecated: see Deployments.
- EVM
- Starknet
- Solana
Install the interface and consumer library with Foundry, pinned to the commit that records the deployed verifier:Call
verify and apply your own policy:verify returns (false, code) instead of reverting, so always check ok. The library MolphaLib packages these checks. Full guide and result codes: Verify on EVM.Get an attestation to test with
Request one from a backend with the SDK or from an agent with MCP. The MCP round tools return ready-made EVM and Starknet calldata with the attestation. With the SDK, build the arguments from the result and call the deployed verifier before writing any contract code:buildStarknetVerifierArgs(result, { maxAge: 300 }), encodeStarknetVerifyCalldata and parseStarknetVerifyResult do the same with any Starknet client; MOLPHA_VERIFIER_STARKNET_SEPOLIA is the address. See Build the arguments off-chain.
maxAge is in seconds and the attestation’s timestamp is in milliseconds: the verifier compares timestamp / 1000 with the block time.
Before you ship
Verification proves that at leastsignaturesRequired live nodes of the named registry version signed this exact payload. Your contract still owns the rest:
- Pin the
sourceIdyou expect and require a minimumsignaturesRequired. - Enforce freshness: a non-zero
maxAgeon EVM and Starknet, or comparetimestamp / 1000with the chain clock. - Reject replays when an old attestation could be submitted twice.
- Decode
valuewith the source’s output type and bound-check it. A source with a policy can sign a declared fallback value; decide how your contract treats it.