lib/tapyrus/opcodes.rb in tapyrus-0.1.0 vs lib/tapyrus/opcodes.rb in tapyrus-0.2.0

- old
+ new

@@ -139,9 +139,14 @@ # https://en.bitcoin.it/wiki/Script#Pseudo-words OP_PUBKEYHASH = 0xfd OP_PUBKEY = 0xfe OP_INVALIDOPCODE = 0xff + # tapyrus extension + OP_CHECKDATASIG = 0xba + OP_CHECKDATASIGVERIFY = 0xbb + OP_COLOR = 0xbc + DUPLICATE_KEY = [:OP_NOP2, :OP_NOP3] OPCODES_MAP = Hash[*(constants.grep(/^OP_/) - [:OP_NOP2, :OP_NOP3, :OP_CHECKLOCKTIMEVERIFY, :OP_CHECKSEQUENCEVERIFY]).map { |c| [const_get(c), c.to_s] }.flatten] NAME_MAP = Hash[*constants.grep(/^OP_/).map { |c| [c.to_s, const_get(c)] }.flatten] def opcode_to_name(opcode) \ No newline at end of file