78trust / 100

Verify Sig

by touchstone.locomot.io in Security & trust

x402 APIPassing, checked 3 h ago

Recover who signed a message (ecrecover, EIP-191 personal_sign). For EIP-712 typed data use POST /verify/sig. Every answer signed.

GET https://touchstone.locomot.io/verify/sig

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://touchstone.locomot.io/verify/sig?expected_signer=0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A&message=touchstone&signature=0xa4237c8d9891e32f5e7c6ea14ca0a9a016454f1d23210b76caac4cc6ebf0f4480034bbf06da24dcef3d0f1c9654073d31fc2c6fef0d6f4306fb4c00c3ac5d20a1b&type=eip191"
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%2Ftouchstone.locomot.io%2Fverify%2Fsig
const res = await pay("https://touchstone.locomot.io/verify/sig?expected_signer=0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A&message=touchstone&signature=0xa4237c8d9891e32f5e7c6ea14ca0a9a016454f1d23210b76caac4cc6ebf0f4480034bbf06da24dcef3d0f1c9654073d31fc2c6fef0d6f4306fb4c00c3ac5d20a1b&type=eip191");
console.log(await res.json());

Example input

{
  "expected_signer": "0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A",
  "message": "touchstone",
  "signature": "0xa4237c8d9891e32f5e7c6ea14ca0a9a016454f1d23210b76caac4cc6ebf0f4480034bbf06da24dcef3d0f1c9654073d31fc2c6fef0d6f4306fb4c00c3ac5d20a1b",
  "type": "eip191"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402628 ms$0.002
6 h agoPassed402888 ms$0.002
11 h agoPassed402672 ms$0.002
14 h agoPassed402687 ms$0.002
18 h agoPassed402731 ms$0.002
21 h agoPassed402627 ms$0.002
25 h agoPassed402746 ms$0.002
30 h agoPassed402246 ms$0.002