soulprint-network 0.6.0 → 0.6.2

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.
@@ -46,7 +46,7 @@ export class NullifierRegistryClient {
46
46
  address;
47
47
  constructor(opts) {
48
48
  this.address = opts?.address ?? NULLIFIER_REGISTRY_ADDRESS;
49
- this.cacheTTLMs = opts?.cacheTTLMs ?? 2 * 60 * 1000; // 2 min
49
+ this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
50
50
  const rpc = opts?.rpc ?? NULLIFIER_REGISTRY_RPC;
51
51
  this.provider = new ethers.JsonRpcProvider(rpc);
52
52
  if (!this.address) {
@@ -45,7 +45,7 @@ export class PeerRegistryClient {
45
45
  address;
46
46
  constructor(opts) {
47
47
  this.address = opts?.address ?? PEER_REGISTRY_ADDRESS;
48
- this.cacheTTLMs = opts?.cacheTTLMs ?? 5 * 60 * 1000; // 5 min
48
+ this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
49
49
  const rpc = opts?.rpc ?? PEER_REGISTRY_RPC;
50
50
  this.provider = new ethers.JsonRpcProvider(rpc);
51
51
  if (!this.address) {
@@ -44,7 +44,7 @@ export class ReputationRegistryClient {
44
44
  address;
45
45
  constructor(opts) {
46
46
  this.address = opts?.address ?? REPUTATION_REGISTRY_ADDRESS;
47
- this.cacheTTLMs = opts?.cacheTTLMs ?? 2 * 60 * 1000; // 2 min
47
+ this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
48
48
  const rpc = opts?.rpc ?? REPUTATION_REGISTRY_RPC;
49
49
  this.provider = new ethers.JsonRpcProvider(rpc);
50
50
  if (!this.address) {
@@ -41,7 +41,7 @@ export class ProtocolThresholdsClient {
41
41
  address;
42
42
  constructor(opts) {
43
43
  this.address = opts?.address ?? PROTOCOL_THRESHOLDS_ADDRESS;
44
- this.cacheTTLMs = opts?.cacheTTLMs ?? 10 * 60 * 1000; // 10 min
44
+ this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
45
45
  const rpc = opts?.rpc ?? PROTOCOL_THRESHOLDS_RPC;
46
46
  this.provider = new ethers.JsonRpcProvider(rpc);
47
47
  this.contract = new ethers.Contract(this.address, ABI, this.provider);
@@ -1,7 +1,7 @@
1
1
  {
2
- "codeHash": "3e63098b6a2421a17bad6792cbc231982327b32c2e77d0ff2be0eda630690f8c",
3
- "codeHashHex": "0x3e63098b6a2421a17bad6792cbc231982327b32c2e77d0ff2be0eda630690f8c",
4
- "computedAt": "2026-03-01T03:57:58.085Z",
2
+ "codeHash": "94b329aa5533c6de47bd34de7a563366a6fb9eb4dc79784c48f016298109f406",
3
+ "codeHashHex": "0x94b329aa5533c6de47bd34de7a563366a6fb9eb4dc79784c48f016298109f406",
4
+ "computedAt": "2026-03-01T12:18:03.408Z",
5
5
  "fileCount": 25,
6
6
  "files": [
7
7
  "blockchain/NullifierRegistryClient.ts",
package/dist/server.js CHANGED
@@ -108,7 +108,7 @@ setInterval(async () => {
108
108
  }
109
109
  }
110
110
  catch { }
111
- }, 5 * 60 * 1000);
111
+ }, 30 * 60 * 1000);
112
112
  // ─── Anti-entropy sync loop ───────────────────────────────────────────────────
113
113
  setInterval(async () => {
114
114
  const { nullifiers, repStore, peers: knownPeers } = getNodeState();
package/dist/validator.js CHANGED
@@ -24,7 +24,7 @@ const NULLIFIER_DB = join(NODE_DIR, "nullifiers.json");
24
24
  const REPUTE_DB = join(NODE_DIR, "reputation.json");
25
25
  const PEERS_DB = join(NODE_DIR, "peers.json");
26
26
  const AUDIT_DB = join(NODE_DIR, "audit.json");
27
- const VERSION = "0.6.0";
27
+ const VERSION = "0.6.1";
28
28
  const MAX_BODY_BYTES = 64 * 1024;
29
29
  // ── Protocol constants (inamovibles - no cambiar directamente aquí) ───────────
30
30
  const RATE_LIMIT_MS = PROTOCOL.RATE_LIMIT_WINDOW_MS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soulprint-network",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Soulprint validator node — 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",