78trust / 100

Shuffle

by Verifiable Random Tools in AI models & inference

x402 APIPassing, checked 1 h ago

Verifiable Random shuffle — a uniform Fisher-Yates permutation bound to a future drand round the server waits for (typically 3-6s) and verifies locally, with original indices and a reproducible proof transcript.

POST https://verifiable-random.use.x402atlas.com/shuffle

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
434 ms typical, 461 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://verifiable-random.use.x402atlas.com/shuffle" \
  -H "content-type: application/json" \
  -d '{"algorithm_version":"drand-hkdf-sha256-v1","client_seed":"meeting-2026-07-30","items":["alice","bob","carol"],"target_round":0}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fverifiable-random.use.x402atlas.com%2Fshuffle
const res = await pay("https://verifiable-random.use.x402atlas.com/shuffle", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"algorithm_version":"drand-hkdf-sha256-v1","client_seed":"meeting-2026-07-30","items":["alice","bob","carol"],"target_round":0}),
});
console.log(await res.json());

Example input

{
  "algorithm_version": "drand-hkdf-sha256-v1",
  "client_seed": "meeting-2026-07-30",
  "items": [
    "alice",
    "bob",
    "carol"
  ],
  "target_round": 0
}

Example output

{
  "algorithm_version": "drand-hkdf-sha256-v1",
  "beacon": {
    "chain_hash": "52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971",
    "network": "quicknet",
    "randomness": "1466a6cd24e327188770752f6134001c64d6efcc590ccc26b721611ad96f165a",
    "round": 1,
    "scheduled_time": "2023-08-23T15:09:27Z",
    "scheme": "bls-unchained-g1-rfc9380",
    "signature": "b55e7cb2d5c613ee0b2e28d6750aabbb78c39dcc96bd9d38c2c2e12198df95571de8e8e402a0cc48871c7089a2b3af4b"
  },
  "example_only": true,
  "operation": "shuffle",
  "processed_at": "2023-08-23T15:09:27Z",
  "request_hash": "83282c22b0a9bce6334f4fe72f37f8c0ce4347b561c2a70a392eae649665fc25",
  "result": {
    "items": [
      "bob",
      "carol",
      "alice"
    ],
    "original_indices": [
      1,
      2,
      0
    ]
  },
  "selection_mode": "example_only",
  "target_round": 1
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402527 ms$0.005
5 h agoPassed402434 ms$0.005
8 h agoPassed402448 ms$0.005
12 h agoPassed402458 ms$0.005
15 h agoPassed402447 ms$0.005
19 h agoPassed402461 ms$0.005
23 h agoPassed402372 ms$0.005
26 h agoPassed402413 ms$0.005
31 h agoPassed402404 ms$0.005
33 h agoPassed402424 ms$0.005
37 h agoPassed402435 ms$0.005
42 h agoPassed402407 ms$0.005