@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.js CHANGED
@@ -884,10 +884,6 @@ async function verifySignature({
884
884
  scheme
885
885
  }) {
886
886
  try {
887
- if (sig === "demo_signature") {
888
- log4.warn("Demo signature detected in verifySignature - should be handled by demo mode");
889
- return "sig_invalid";
890
- }
891
887
  const detectedScheme = scheme || detectSignatureScheme(addr, sig);
892
888
  log4.debug(
893
889
  { addr, msgLength: msg.length, sigLength: sig.length, scheme: detectedScheme },
@@ -1113,26 +1109,6 @@ async function verify2(input, opts = {}) {
1113
1109
  codes.push("bad_request");
1114
1110
  return { ok: false, codes, network, attestation_id };
1115
1111
  }
1116
- if (opts.demoMode) {
1117
- const sats_bonded = 1e6;
1118
- const days_unspent = 90;
1119
- const metrics = {
1120
- sats_bonded,
1121
- days_unspent,
1122
- score: computeScore(sats_bonded, days_unspent, { algorithm: "v0" })
1123
- // ≈ 55.26
1124
- };
1125
- codes.push("sig_ok_bip322");
1126
- codes.push("bond_confirmed");
1127
- return {
1128
- ok: true,
1129
- codes,
1130
- network,
1131
- attestation_id,
1132
- identities: parsed.core.identities,
1133
- metrics
1134
- };
1135
- }
1136
1112
  if ((network === "testnet" || network === "signet") && !opts.testMode) {
1137
1113
  codes.push("network_testmode");
1138
1114
  return { ok: false, codes, network, attestation_id };