This commit adds very basic and experimental support for Elements-flavored Bitcoin Script, such as:
new function checkSigFromStack(signature, message, pubkey)
added Asset type as mandatory contract argument and of <Asset> statement. To be used as unlock Value of Asset
added NullaryOperator for accessing transaction details where the script is spent "tx.version" / "tx.locktime" / "tx.weight" / "tx.inputs.length" / "tx.outputs.length"
do ACTUAL casting when using bytes function if the passed is Literal of type Integer (now defaults to 4 bytes as a size)
changed some frontend code of ivy-plaground to make it work with new functions and global variables.
This commit adds very basic and experimental support for Elements-flavored Bitcoin Script, such as:
checkSigFromStack(signature, message, pubkey)
Asset
type as mandatorycontract
argument andof <Asset>
statement. To be used asunlock Value of Asset
NullaryOperator
for accessing transaction details where the script is spent"tx.version" / "tx.locktime" / "tx.weight" / "tx.inputs.length" / "tx.outputs.length"
bytes
function if the passed isLiteral
of typeInteger
(now defaults to 4 bytes as a size)ivy-plaground
to make it work with new functions and global variables.