Method: Bitcoin::Descriptor::Multi#to_hex
- Defined in:
- lib/bitcoin/descriptor/multi.rb
#to_hex ⇒ Object
23 24 25 26 27 28 |
# File 'lib/bitcoin/descriptor/multi.rb', line 23 def to_hex result = to_script pubkey_count = result.get_pubkeys.length raise RuntimeError, "Cannot have #{pubkey_count} pubkeys in bare multisig; only at most 3 pubkeys." if pubkey_count > 3 result.to_hex end |