@orangecheck/sdk 1.8.0 → 1.9.0

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.
package/dist/index.mjs CHANGED
@@ -862,10 +862,6 @@ async function verifySignature({
862
862
  scheme
863
863
  }) {
864
864
  try {
865
- if (sig === "demo_signature") {
866
- log4.warn("Demo signature detected in verifySignature - should be handled by demo mode");
867
- return "sig_invalid";
868
- }
869
865
  const detectedScheme = scheme || detectSignatureScheme(addr, sig);
870
866
  log4.debug(
871
867
  { addr, msgLength: msg.length, sigLength: sig.length, scheme: detectedScheme },
@@ -1091,26 +1087,6 @@ async function verify2(input, opts = {}) {
1091
1087
  codes.push("bad_request");
1092
1088
  return { ok: false, codes, network, attestation_id };
1093
1089
  }
1094
- if (opts.demoMode) {
1095
- const sats_bonded = 1e6;
1096
- const days_unspent = 90;
1097
- const metrics = {
1098
- sats_bonded,
1099
- days_unspent,
1100
- score: computeScore(sats_bonded, days_unspent, { algorithm: "v0" })
1101
- // ≈ 55.26
1102
- };
1103
- codes.push("sig_ok_bip322");
1104
- codes.push("bond_confirmed");
1105
- return {
1106
- ok: true,
1107
- codes,
1108
- network,
1109
- attestation_id,
1110
- identities: parsed.core.identities,
1111
- metrics
1112
- };
1113
- }
1114
1090
  if ((network === "testnet" || network === "signet") && !opts.testMode) {
1115
1091
  codes.push("network_testmode");
1116
1092
  return { ok: false, codes, network, attestation_id };