Module: Bitcoin::Wallet::Signer

Defined in:
lib/bitcoin/wallet/signer.rb

Class Method Summary collapse

Class Method Details

.sign(wallet, account_name, tx) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bitcoin/wallet/signer.rb', line 6

def self.sign(wallet, , tx)
   = (wallet, )
  return unless 

  tx.inputs.each.with_index do |input, index|
    spec = input_spec(wallet, , tx, index)
    next unless spec
    sign_tx_for_p2wpkh(tx, index, spec[0], spec[1])
  end
  tx
end