Merkle root compute

merkle-root-compute · version 1.0.0 · Hashing & signatures · free, no key needed

Compute a Merkle tree root (RFC 9162 or Bitcoin) from a leaf list, with an optional audit path.

Use when you need to: compute a certificate transparency merkle root · bitcoin block merkle root from txids · rfc 9162 tree hash.

Decide before calling

Read the versioned contract and the supported scope below. Reuse merkle-root-compute@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use merkle-root-compute@1.0.0 for compute a certificate transparency merkle root. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "scheme": "rfc9162",
  "leaves": []
}

Response:

{
  "result": {
    "root": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "leaf_count": 0,
    "audit_path": null
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "merkle-root-compute",
  "version": "1.0.0",
  "input": {
    "scheme": "rfc9162",
    "leaves": []
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/merkle-root-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"scheme":"rfc9162","leaves":[]}'

The machine-readable contract is at /v1/tools/merkle-root-compute/versions/1.0.0.

CLI

node cli.mjs run merkle-root-compute 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.