View Source BitcoinLib.Script.Types.P2sh (BitcoinLib v0.4.7)

P2SH helper that can issue scripts out of simple parameters

Link to this section Summary

Functions

Returns a full P2SH script out of a public key hash

Link to this section Functions

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

Returns a full P2SH script out of a public key hash

examples

Examples

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

%BitcoinLib.Script.Opcodes.Crypto.Hash160{},
%BitcoinLib.Script.Opcodes.Data{value: <<0x11c371a2b2d22c7b8b1b51d9fde0e44a9dfdc7bb::160>>},
%BitcoinLib.Script.Opcodes.BitwiseLogic.Equal{}

]