soulprint-network 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
1
  {
2
- "PeerRegistry": "0x452fb66159dFCfC13f2fD9627aA4c56886BfB15b"
2
+ "PeerRegistry": "0x452fb66159dFCfC13f2fD9627aA4c56886BfB15b",
3
+ "NullifierRegistry": "0xf328383BAed260683Ba5Aa94966ACe0C30f43ED4",
4
+ "ReputationRegistry": "0x546830658b2de9eC82cc23463143dEC1B24458e1",
5
+ "ProtocolThresholds": "0xD8f78d65b35806101672A49801b57F743f2D2ab1",
6
+ "MCPRegistry": "0x59EA3c8f60ecbAe22B4c323A8dDc2b0BCd9D3C2a"
3
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "codeHash": "94b329aa5533c6de47bd34de7a563366a6fb9eb4dc79784c48f016298109f406",
3
- "codeHashHex": "0x94b329aa5533c6de47bd34de7a563366a6fb9eb4dc79784c48f016298109f406",
4
- "computedAt": "2026-03-01T12:18:03.408Z",
2
+ "codeHash": "b36eb1d256c5cf61dad631b2d9e4a1e2e47a36b31ef39cb6ed1ca74e7b71d87d",
3
+ "codeHashHex": "0xb36eb1d256c5cf61dad631b2d9e4a1e2e47a36b31ef39cb6ed1ca74e7b71d87d",
4
+ "computedAt": "2026-03-02T03:48:26.468Z",
5
5
  "fileCount": 25,
6
6
  "files": [
7
7
  "blockchain/NullifierRegistryClient.ts",
package/dist/validator.js CHANGED
@@ -7,7 +7,6 @@ import { generateKeypair, keypairFromPrivateKey, decodeToken, sign, createToken,
7
7
  import { verifyProof, deserializeProof } from "soulprint-zkp";
8
8
  import { buildChallengeResponse, verifyPeerBehavior, } from "./peer-challenge.js";
9
9
  import { handleCredentialRoute } from "./credentials/index.js";
10
- import { handleCedulaRoute } from "./credentials/registraduria.js";
11
10
  import { encryptGossip, decryptGossip } from "./crypto/gossip-cipher.js";
12
11
  import { selectGossipPeers, routingStats } from "./crypto/peer-router.js";
13
12
  import { NullifierConsensus, AttestationConsensus, StateSyncManager } from "./consensus/index.js";
@@ -325,7 +324,7 @@ function handleInfo(res, nodeKeypair) {
325
324
  total_reputation: Object.keys(repStore).length,
326
325
  known_peers: peers.length,
327
326
  supported_countries: ["CO"],
328
- capabilities: ["zk-verify", "anti-sybil", "co-sign", "bot-reputation", "registraduria-validation", "on-chain-state"],
327
+ capabilities: ["zk-verify", "anti-sybil", "co-sign", "bot-reputation", "on-chain-state"],
329
328
  rate_limit: `${PROTOCOL.RATE_LIMIT_MAX} req/min per IP`,
330
329
  });
331
330
  }
@@ -980,11 +979,14 @@ export function startValidatorNode(port = PORT) {
980
979
  if (handled)
981
980
  return;
982
981
  }
983
- // ── Registraduría cédula validation ────────────────────────────────────
982
+ // ── Registraduría cédula validation — disabled (captcha blocks automated scraping) ──
984
983
  if (cleanUrl.startsWith("/verify/cedula")) {
985
- const handled = await handleCedulaRoute(req, res, url);
986
- if (handled)
987
- return;
984
+ return json(res, 410, {
985
+ ok: false,
986
+ error: "Registraduría scraping disabled — use local ZK verification instead",
987
+ alternative: "POST /verify with a ZK proof generated by npx soulprint verify-me",
988
+ docs: "https://soulprint.digital/docs/verify.html",
989
+ });
988
990
  }
989
991
  if (cleanUrl === "/info" && req.method === "GET")
990
992
  return handleInfo(res, nodeKeypair);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "soulprint-network",
3
- "version": "0.6.2",
4
- "description": "Soulprint validator node HTTP server that verifies ZK proofs, co-signs SPTs, anti-Sybil registry",
3
+ "version": "0.6.4",
4
+ "description": "Soulprint validator node \u2014 HTTP server that verifies ZK proofs, co-signs SPTs, anti-Sybil registry",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "bin": {
@@ -57,4 +57,4 @@
57
57
  "types": "./dist/index.d.ts"
58
58
  }
59
59
  }
60
- }
60
+ }