With bsv.js (legacy 1.x version) we can define script flags when signing a transaction.
e.g.:
bsv.Interp.SCRIPT_ENABLE_MAGNETIC_OPCODES | bsv.Interp.SCRIPT_ENABLE_MONOLITH_OPCODES |
bsv.Interp.SCRIPT_VERIFY_STRICTENC |
bsv.Interp.SCRIPT_ENABLE_SIGHASH_FORKID | bsv.Interp.SCRIPT_VERIFY_LOW_S | bsv.Interp.SCRIPT_VERIFY_NULLFAIL |
bsv.Interp.SCRIPT_VERIFY_DERSIG |
bsv.Interp.SCRIPT_VERIFY_MINIMALDATA | bsv.Interp.SCRIPT_VERIFY_NULLDUMMY |
bsv.Interp.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS |
bsv.Interp.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY | bsv.Interp.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY | bsv.Interp.SCRIPT_VERIFY_CLEANSTACK
would be the flag value 870366.
When we sign with bsv-wasm we don't have the option to set the flags and the unlocking of our non-standard script fails.
Does bsv-wasm support settings flags when signing a tx?
With bsv.js (legacy 1.x version) we can define script flags when signing a transaction.
e.g.:
bsv.Interp.SCRIPT_ENABLE_MAGNETIC_OPCODES | bsv.Interp.SCRIPT_ENABLE_MONOLITH_OPCODES |
bsv.Interp.SCRIPT_VERIFY_STRICTENC |
bsv.Interp.SCRIPT_ENABLE_SIGHASH_FORKID | bsv.Interp.SCRIPT_VERIFY_LOW_S | bsv.Interp.SCRIPT_VERIFY_NULLFAIL |
bsv.Interp.SCRIPT_VERIFY_DERSIG |
bsv.Interp.SCRIPT_VERIFY_MINIMALDATA | bsv.Interp.SCRIPT_VERIFY_NULLDUMMY |
bsv.Interp.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS |
bsv.Interp.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY | bsv.Interp.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY | bsv.Interp.SCRIPT_VERIFY_CLEANSTACK
would be the flag value 870366.
When we sign with bsv-wasm we don't have the option to set the flags and the unlocking of our non-standard script fails.
Does bsv-wasm support settings flags when signing a tx?