def signatures(transaction, names: [:primary])
      transaction.inputs.map do |input|
        path = input.output.metadata[:wallet_path]
        node = self.path(path)
        sig_hash = transaction.sig_hash(input, node.script)
        node.signatures(sig_hash, names: names)
      end
    end
def signatures(transaction, names: [:primary])
      transaction.inputs.map do |input|
        path = input.output.metadata[:wallet_path]
        node = self.path(path)
        sig_hash = transaction.sig_hash(input, node.script)
        node.signatures(sig_hash, names: names)
      end
    end
Takes a Transaction ready to be signed.

 Returns an Array of signature dictionaries.