View Source BitcoinLib.Script.Types.P2wpkh (BitcoinLib v0.4.2)

P2WPKH helper that can issue scripts out of simple parameters

Link to this section Summary

Functions

Returns a full P2WPKH script out of a public key hash

Link to this section Functions

@spec create(bitstring()) :: list()

Returns a full P2WPKH script out of a public key hash

examples

Examples

iex> <<0x11c371a2b2d22c7b8b1b51d9fde0e44a9dfdc7bb::160>> ...> |> BitcoinLib.Script.Types.P2wpkh.create() [

%BitcoinLib.Script.Opcodes.Constants.Zero{},
%BitcoinLib.Script.Opcodes.Data{value: <<0x11c371a2b2d22c7b8b1b51d9fde0e44a9dfdc7bb::160>>}

]