@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.
- package/dist/NeuraiScripts.global.js +3 -0
- package/dist/NeuraiScripts.global.js.map +1 -1
- package/dist/browser.js +3 -0
- package/dist/browser.js.map +1 -1
- package/dist/core/opcodes.d.ts +1 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -342,6 +342,7 @@ declare const OP_SHA512 = 203;
|
|
|
342
342
|
declare const OP_CHECKSIG_ED25519 = 221;
|
|
343
343
|
declare const OP_CHECKSIGADD = 222;
|
|
344
344
|
declare const OP_CHECKASSETAUTH = 223;
|
|
345
|
+
declare const OP_CHECKSIG_P256 = 224;
|
|
345
346
|
declare const OP_NOP1 = 176;
|
|
346
347
|
declare const OP_NOP9 = 184;
|
|
347
348
|
declare const OP_NOP10 = 185;
|
|
@@ -465,6 +466,7 @@ declare const opcodes_d_OP_CHECKSIGADD: typeof OP_CHECKSIGADD;
|
|
|
465
466
|
declare const opcodes_d_OP_CHECKSIGFROMSTACK: typeof OP_CHECKSIGFROMSTACK;
|
|
466
467
|
declare const opcodes_d_OP_CHECKSIGVERIFY: typeof OP_CHECKSIGVERIFY;
|
|
467
468
|
declare const opcodes_d_OP_CHECKSIG_ED25519: typeof OP_CHECKSIG_ED25519;
|
|
469
|
+
declare const opcodes_d_OP_CHECKSIG_P256: typeof OP_CHECKSIG_P256;
|
|
468
470
|
declare const opcodes_d_OP_CHECKTEMPLATEVERIFY: typeof OP_CHECKTEMPLATEVERIFY;
|
|
469
471
|
declare const opcodes_d_OP_CODESEPARATOR: typeof OP_CODESEPARATOR;
|
|
470
472
|
declare const opcodes_d_OP_DEPTH: typeof OP_DEPTH;
|
|
@@ -622,6 +624,7 @@ declare namespace opcodes_d {
|
|
|
622
624
|
opcodes_d_OP_CHECKSIGFROMSTACK as OP_CHECKSIGFROMSTACK,
|
|
623
625
|
opcodes_d_OP_CHECKSIGVERIFY as OP_CHECKSIGVERIFY,
|
|
624
626
|
opcodes_d_OP_CHECKSIG_ED25519 as OP_CHECKSIG_ED25519,
|
|
627
|
+
opcodes_d_OP_CHECKSIG_P256 as OP_CHECKSIG_P256,
|
|
625
628
|
opcodes_d_OP_CHECKTEMPLATEVERIFY as OP_CHECKTEMPLATEVERIFY,
|
|
626
629
|
opcodes_d_OP_CODESEPARATOR as OP_CODESEPARATOR,
|
|
627
630
|
opcodes_d_OP_DEPTH as OP_DEPTH,
|
package/dist/index.js
CHANGED
|
@@ -189,6 +189,8 @@ const OP_CHECKSIGADD = 0xde;
|
|
|
189
189
|
// AuthScript only. Stack contract: (c a b T 1 M G role_1 .. role_n n -- 1),
|
|
190
190
|
// failing the script instead of pushing 0. See covenants/asset-auth.
|
|
191
191
|
const OP_CHECKASSETAUTH = 0xdf;
|
|
192
|
+
// NIP-060: verify a compact P-256 signature over SHA-256(message).
|
|
193
|
+
const OP_CHECKSIG_P256 = 0xe0;
|
|
192
194
|
// ---------- Expansion / NOPs ----------
|
|
193
195
|
// Only the NOPs not aliased by DePIN-Test opcodes are exported as NOPs.
|
|
194
196
|
// OP_NOP2 == OP_CHECKLOCKTIMEVERIFY (0xb1)
|
|
@@ -358,6 +360,7 @@ var opcodes = /*#__PURE__*/Object.freeze({
|
|
|
358
360
|
OP_CHECKSIGFROMSTACK: OP_CHECKSIGFROMSTACK,
|
|
359
361
|
OP_CHECKSIGVERIFY: OP_CHECKSIGVERIFY,
|
|
360
362
|
OP_CHECKSIG_ED25519: OP_CHECKSIG_ED25519,
|
|
363
|
+
OP_CHECKSIG_P256: OP_CHECKSIG_P256,
|
|
361
364
|
OP_CHECKTEMPLATEVERIFY: OP_CHECKTEMPLATEVERIFY,
|
|
362
365
|
OP_CODESEPARATOR: OP_CODESEPARATOR,
|
|
363
366
|
OP_DEPTH: OP_DEPTH,
|