Tuplehash xof compute

tuplehash-xof-compute · version 1.0.0 · Hashing & signatures · free, no key needed

Compute TupleHashXOF128 or TupleHashXOF256 with right_encode(0) XOF framing.

Use when you need to: tuplehash-xof-compute · compute nist tuplehashxof · compute tuplehashxof128 or tuplehashxof256 with right_encode(0) xof framing..

Decide before calling

Read the versioned contract and the supported scope below. Reuse tuplehash-xof-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 tuplehash-xof-compute@1.0.0 for tuplehash-xof-compute. 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:

{
  "tuples": [
    {
      "data": "000102",
      "encoding": "hex"
    },
    {
      "data": "101112131415",
      "encoding": "hex"
    }
  ],
  "security": 128,
  "output_bytes": 32
}

Response:

{
  "result": {
    "algorithm": "TupleHashXOF128",
    "input_bytes": 9,
    "output_bytes": 32,
    "hex": "2f103cd7c32320353495c68de1a8129245c6325f6f2a3d608d92179c96e68488",
    "standard": "NIST SP 800-185 (December 2016)",
    "reference": "Section 6"
  }
}

How to call it

MCP

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

{
  "id": "tuplehash-xof-compute",
  "version": "1.0.0",
  "input": {
    "tuples": [
      {
        "data": "000102",
        "encoding": "hex"
      },
      {
        "data": "101112131415",
        "encoding": "hex"
      }
    ],
    "security": 128,
    "output_bytes": 32
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/tuplehash-xof-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"tuples":[{"data":"000102","encoding":"hex"},{"data":"101112131415","encoding":"hex"}],"security":128,"output_bytes":32}'

The machine-readable contract is at /v1/tools/tuplehash-xof-compute/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.