@@ -448,16 +448,20 @@ pub mod all {
448448 /// and completing the padding
449449 pub const OP_SHA256FINALIZE : All = All { code : 0xc6 } ;
450450 /// Pop a CScriptNum input index idx and push the outpoint as a tuple.
451+ ///
451452 /// First push the txid(32) of the prev_out, followed by a 4 byte push of
452453 /// vout followed by a push for the outpoint_flag(1)
453454 pub const OP_INSPECTINPUTOUTPOINT : All = All { code : 0xc7 } ;
454455 /// Pop a CScriptNum input index idx and push the nAsset onto the stack as two elements.
456+ ///
455457 /// The first push the assetID(32), followed by the prefix(1)
456458 pub const OP_INSPECTINPUTASSET : All = All { code : 0xc8 } ;
457459 /// Pop a CScriptNum input index idx and push the nValue as a tuple,
460+ ///
458461 /// value(8 byte LE, 32) followed by prefix(1),
459462 pub const OP_INSPECTINPUTVALUE : All = All { code : 0xc9 } ;
460463 /// Pop a CScriptNum input index idx and push the following depending the type of scriptPubkey:
464+ ///
461465 /// - If the scriptPubKey is not a native segwit program, push a single sha256
462466 /// hash of the scriptPubKey on stack top. Next, push a CScriptNum(-1) to
463467 /// indicate a non-native segwit scriptPubKey.
@@ -467,7 +471,9 @@ pub mod all {
467471 /// Pop a CScriptNum input index idx and push the nSequence(4) as little-endian number.
468472 pub const OP_INSPECTINPUTSEQUENCE : All = All { code : 0xcb } ;
469473 /// Pop a CScriptNum input index idx and push the assetIssuance information if the asset has issuance,
470- /// otherwise push an empty vector. Refer to the [spec](https://github.com/ElementsProject/elements/blob/master/doc/tapscript_opcodes.md)
474+ /// otherwise push an empty vector.
475+ ///
476+ /// Refer to the [spec](https://github.com/ElementsProject/elements/blob/master/doc/tapscript_opcodes.md)
471477 /// for details
472478 pub const OP_INSPECTINPUTISSUANCE : All = All { code : 0xcc } ;
473479 /// Pushes the current input index as CScriptNum. This can be used in conjunction with
@@ -496,18 +502,22 @@ pub mod all {
496502 /// Push the transaction weight (8) as little-endian
497503 pub const OP_TXWEIGHT : All = All { code : 0xd6 } ;
498504 /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE).
505+ ///
499506 /// Push a + b onto the stack. Push 1 CScriptNum if there is no overflow.
500507 /// Refer to the spec for details when dealing with overflow.
501508 pub const OP_ADD64 : All = All { code : 0xd7 } ;
502- /// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE).
509+ /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE).
510+ ///
503511 /// Push a - b onto the stack. Push 1 CScriptNum if there is no overflow.
504512 /// Refer to the spec for details when dealing with overflow.
505513 pub const OP_SUB64 : All = All { code : 0xd8 } ;
506514 /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE).
515+ ///
507516 /// Push a*b onto the stack. Push 1 CScriptNum if there is no overflow.
508517 /// Refer to the spec for details when dealing with overflow.
509518 pub const OP_MUL64 : All = All { code : 0xd9 } ;
510- /// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE).
519+ /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE).
520+ ///
511521 /// First push remainder a%b(must be non-negative and less than |b|) onto the
512522 /// stack followed by quotient(a//b) onto the stack.
513523 ///
@@ -516,44 +526,54 @@ pub mod all {
516526 /// Refer to the spec for details when dealing with overflow.
517527 pub const OP_DIV64 : All = All { code : 0xda } ;
518528 /// Pop the first number(8 byte LE) as a and pushes -a on the stack top.
529+ ///
519530 /// If the number is -2^63 treat as overflow, otherwise push CScriptNum 1 to indicate no overflow.
520531 /// Refer to the spec for details when dealing with overflow.
521532 pub const OP_NEG64 : All = All { code : 0xdb } ;
522- /// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a < b.
533+ /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a < b.
534+ ///
523535 /// Note that this operation cannot fail
524536 pub const OP_LESSTHAN64 : All = All { code : 0xdc } ;
525- /// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a <= b.
537+ /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a <= b.
538+ ///
526539 /// Note that this operation cannot fail
527540 pub const OP_LESSTHANOREQUAL64 : All = All { code : 0xdd } ;
528- /// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a > b
541+ /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a > b.
542+ ///
529543 /// Note that this operation cannot fail
530544 pub const OP_GREATERTHAN64 : All = All { code : 0xde } ;
531- /// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a >= b.
545+ /// Pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a >= b.
532546 /// Note that this operation cannot fail
533547 pub const OP_GREATERTHANOREQUAL64 : All = All { code : 0xdf } ;
534- /// pop the stack as minimal CScriptNum, push 8 byte signed LE corresponding to that number.
548+ /// Pop the stack as minimal CScriptNum, push 8 byte signed LE corresponding to that number.
535549 pub const OP_SCRIPTNUMTOLE64 : All = All { code : 0xe0 } ;
536- /// pop the stack as a 8 byte signed LE. Convert to CScriptNum and push it, abort on fail.
550+ /// Pop the stack as a 8 byte signed LE. Convert to CScriptNum and push it, abort on fail.
551+ ///
537552 /// Please check the range of the operand before calling the opcode.
538553 pub const OP_LE64TOSCRIPTNUM : All = All { code : 0xe1 } ;
539- /// pop the stack as a 4 byte unsigned LE. Push the corresponding 8 byte signed LE number.
554+ /// Pop the stack as a 4 byte unsigned LE. Push the corresponding 8 byte signed LE number.
555+ ///
540556 /// Cannot fail, useful for operating of version, locktime, sequence, number of inputs,
541557 /// number of outputs, weight etc.
542558 pub const OP_LE32TOLE64 : All = All { code : 0xe2 } ;
543- /// Pops three elements from stack as described below:
544- /// 1) a 32 byte big endian, unsigned scalar k.
545- /// 2) Compressed EC point P, and
546- /// 3) compressed EC point Q.
559+ /// Pops three elements from stack as:
560+ ///
561+ /// 1. a 32 byte big endian, unsigned scalar k.
562+ /// 2. Compressed EC point P, and
563+ /// 3. compressed EC point Q.
547564 ///
548565 /// Abort if P, Q is invalid or k is not 32 bytes and outside of secp256k1 curve order.
566+ ///
549567 /// Abort if Q != k*P.
550568 pub const OP_ECMULSCALARVERIFY : All = All { code : 0xe3 } ;
551569 /// Pop the three elements as:
552- /// 1) 32 byte X-only internal key P,
553- /// 2) a 32 byte big endian, unsigned scalar k, and
554- /// 3) 33 byte compressed point Q.
570+ ///
571+ /// 1. 32 byte X-only internal key P,
572+ /// 2. a 32 byte big endian, unsigned scalar k, and
573+ /// 3. 33 byte compressed point Q.
555574 ///
556575 /// Abort if P, Q is invalid or k is not 32 bytes and outside of secp256k1 curve order.
576+ ///
557577 /// Abort if Q != P + k*G where G is the generator for secp256k1.
558578 pub const OP_TWEAKVERIFY : All = All { code : 0xe4 } ;
559579 /// Synonym for OP_RETURN
0 commit comments