@neuraiproject/neurai-scripts 0.12.0 → 0.13.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.
@@ -110,6 +110,7 @@ export declare const OP_SHA512 = 203;
110
110
  export declare const OP_CHECKSIG_ED25519 = 221;
111
111
  export declare const OP_CHECKSIGADD = 222;
112
112
  export declare const OP_CHECKASSETAUTH = 223;
113
+ export declare const OP_CHECKSIG_P256 = 224;
113
114
  export declare const OP_NOP1 = 176;
114
115
  export declare const OP_NOP9 = 184;
115
116
  export declare const OP_NOP10 = 185;
package/dist/index.cjs CHANGED
@@ -191,6 +191,8 @@ const OP_CHECKSIGADD = 0xde;
191
191
  // AuthScript only. Stack contract: (c a b T 1 M G role_1 .. role_n n -- 1),
192
192
  // failing the script instead of pushing 0. See covenants/asset-auth.
193
193
  const OP_CHECKASSETAUTH = 0xdf;
194
+ // NIP-060: verify a compact P-256 signature over SHA-256(message).
195
+ const OP_CHECKSIG_P256 = 0xe0;
194
196
  // ---------- Expansion / NOPs ----------
195
197
  // Only the NOPs not aliased by DePIN-Test opcodes are exported as NOPs.
196
198
  // OP_NOP2 == OP_CHECKLOCKTIMEVERIFY (0xb1)
@@ -360,6 +362,7 @@ var opcodes = /*#__PURE__*/Object.freeze({
360
362
  OP_CHECKSIGFROMSTACK: OP_CHECKSIGFROMSTACK,
361
363
  OP_CHECKSIGVERIFY: OP_CHECKSIGVERIFY,
362
364
  OP_CHECKSIG_ED25519: OP_CHECKSIG_ED25519,
365
+ OP_CHECKSIG_P256: OP_CHECKSIG_P256,
363
366
  OP_CHECKTEMPLATEVERIFY: OP_CHECKTEMPLATEVERIFY,
364
367
  OP_CODESEPARATOR: OP_CODESEPARATOR,
365
368
  OP_DEPTH: OP_DEPTH,