Class: Bitcoin::Descriptor::SortedMulti
- Inherits:
-
Multi
- Object
- Expression
- Multi
- Bitcoin::Descriptor::SortedMulti
- Defined in:
- lib/bitcoin/descriptor/sorted_multi.rb
Overview
sortedmulti() expression
Instance Attribute Summary
Attributes inherited from Multi
Instance Method Summary collapse
Methods inherited from Multi
#args, #initialize, #to_hex, #top_level?
Methods inherited from Expression
#==, #args, #compressed_key?, #derive_path, #extract_pubkey, #to_hex, #to_s, #top_level?
Constructor Details
This class inherits a constructor from Bitcoin::Descriptor::Multi
Instance Method Details
#to_script ⇒ Object
10 11 12 |
# File 'lib/bitcoin/descriptor/sorted_multi.rb', line 10 def to_script Script.to_multisig_script(threshold, keys.map{|key| extract_pubkey(key).pubkey }, sort: true) end |
#type ⇒ Object
6 7 8 |
# File 'lib/bitcoin/descriptor/sorted_multi.rb', line 6 def type :sortedmulti end |