PCE Voucher Store API

IPFS-backed Merkle tree leaves storage

POST /api/leaves

Store an array of bytes32 leaves to IPFS. Returns the CID.

Request body
["0xabc...64chars", "0xdef...64chars"]
Response
{ "cid": "bafkrei..." }
GET /api/leaves?cid={cid}

Retrieve leaves from IPFS by CID.

Response
["0xabc...64chars", "0xdef...64chars"]