Method: Bitcoin::PSBT::HDKeyPath#to_payload

Defined in:
lib/bitcoin/psbt/hd_key_path.rb

#to_payload(type = ) ⇒ String

generate payload which consist of pubkey and fingerprint, hd key path payload.

Returns:



22
23
24
# File 'lib/bitcoin/psbt/hd_key_path.rb', line 22

def to_payload(type = PSBT_IN_TYPES[:bip32_derivation])
  PSBT.serialize_to_vector(type, key: pubkey.htb, value: info.to_payload)
end