Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AuthenticationTemplateScriptLocking

Hierarchy

Index

Properties

Properties

lockingType

lockingType: "standard" | "p2sh"

Indicates if P2SH infrastructure should be used when producing bytecode related to this script. For more information on P2SH, see BIP16.

When compiling locking scripts of type p2sh, the result will be placed in a P2SH "redeem script" format: OP_HASH160 <$(<lockingBytecode> OP_HASH160)> OP_EQUAL

When compiling unlocking scripts which unlock locking scripts of type p2sh, the result will be transformed into the P2SH unlocking format: unlockingBytecode <lockingBytecode> (where lockingBytecode is the compiled bytecode of the locking script, without the "redeem script" transformation.)

The presence of the lockingType property indicates that this script is a locking script. It must be present on any script referenced by the unlocks property of another script.

Optional name

name: undefined | string

A single-line, human-readable name for this script (for use in user interfaces).

script

script: string

The script definition in BTL (Bitauth Templating Language).

Generated using TypeDoc