Class: Bitcoin::Descriptor::Sh
- Inherits:
-
ScriptExpression
- Object
- Expression
- ScriptExpression
- Bitcoin::Descriptor::Sh
- Defined in:
- lib/bitcoin/descriptor/sh.rb
Overview
sh expression
Instance Attribute Summary
Attributes inherited from ScriptExpression
Instance Method Summary collapse
Methods inherited from ScriptExpression
Methods inherited from Expression
#==, #args, #compressed_key?, #derive_path, #extract_pubkey, #to_hex, #to_s
Constructor Details
This class inherits a constructor from Bitcoin::Descriptor::ScriptExpression
Instance Method Details
#to_script ⇒ Object
10 11 12 |
# File 'lib/bitcoin/descriptor/sh.rb', line 10 def to_script script.to_script.to_p2sh end |
#top_level? ⇒ Boolean
14 15 16 |
# File 'lib/bitcoin/descriptor/sh.rb', line 14 def top_level? true end |
#type ⇒ Object
6 7 8 |
# File 'lib/bitcoin/descriptor/sh.rb', line 6 def type :sh end |