clawchain/docs/static/openapi.json
caelum0x 53f5135228 feat: implement ClawChain Phase 1 - ZK privacy module and agent registry
- Scaffold Cosmos SDK chain with Ignite CLI (address prefix: claw, token: uclaw)
- Implement x/privacy module with ZK UTXO shielded pool:
  - gnark Groth16 circuits (TransferCircuit: 2-in-2-out, UnshieldCircuit)
  - MiMC-based Merkle tree (depth 32) for commitment storage
  - Shield/Unshield/PrivateTransfer message handlers with proof verification
  - Nullifier double-spend prevention
  - On-chain Merkle tree state management
- Implement x/agent module for AI agent identities:
  - Agent registration with pubkey, endpoint, name
  - Agent action logging with type validation
  - Query handlers for agent lookup
- 26 passing tests covering full ZK proof lifecycle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 00:27:29 +03:00

1 line
5.0 KiB
JSON

{"id":"clawchain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain clawchain REST API","title":"HTTP API Console","contact":{"name":"clawchain"},"version":"version not set"},"paths":{"/clawchain/agent/v1/agent/{address}":{"get":{"tags":["Query"],"summary":"Agent Queries a list of Agent items.","operationId":"ClawchainQuery_Agent","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/clawchain.agent.v1.QueryAgentResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/clawchain/agent/v1/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"ClawchainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/clawchain.agent.v1.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/clawchain/clawchain/v1/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"ClawchainQuery_ParamsMixin6","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/clawchain.clawchain.v1.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/clawchain/privacy/v1/merkle_root":{"get":{"tags":["Query"],"summary":"MerkleRoot Queries a list of MerkleRoot items.","operationId":"ClawchainQuery_MerkleRoot","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/clawchain.privacy.v1.QueryMerkleRootResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/clawchain/privacy/v1/nullifier_exists/{nullifier}":{"get":{"tags":["Query"],"summary":"NullifierExists Queries a list of NullifierExists items.","operationId":"ClawchainQuery_NullifierExists","parameters":[{"type":"string","name":"nullifier","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/clawchain.privacy.v1.QueryNullifierExistsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/clawchain/privacy/v1/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"ClawchainQuery_ParamsMixin10","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/clawchain.privacy.v1.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"clawchain.agent.v1.Params":{"description":"Params defines the parameters for the module.","type":"object"},"clawchain.agent.v1.QueryAgentResponse":{"description":"QueryAgentResponse defines the QueryAgentResponse message.","type":"object","properties":{"endpoint":{"type":"string"},"name":{"type":"string"},"pubkey":{"type":"string"},"registered":{"type":"boolean"}}},"clawchain.agent.v1.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/clawchain.agent.v1.Params"}}},"clawchain.clawchain.v1.Params":{"description":"Params defines the parameters for the module.","type":"object"},"clawchain.clawchain.v1.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/clawchain.clawchain.v1.Params"}}},"clawchain.privacy.v1.Params":{"description":"Params defines the parameters for the module.","type":"object"},"clawchain.privacy.v1.QueryMerkleRootResponse":{"description":"QueryMerkleRootResponse defines the QueryMerkleRootResponse message.","type":"object","properties":{"root":{"type":"string"}}},"clawchain.privacy.v1.QueryNullifierExistsResponse":{"description":"QueryNullifierExistsResponse defines the QueryNullifierExistsResponse message.","type":"object","properties":{"exists":{"type":"boolean"}}},"clawchain.privacy.v1.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/clawchain.privacy.v1.Params"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}}},"tags":[{"name":"Query"},{"name":"Msg"}]}