View Source Bitcoinex.Utils (bitcoinex v0.1.8)
Contains useful utility functions used in Bitcoinex.
Link to this section Summary
Types
The pad_type describes the padding to use.
Functions
pads binary according to the byte length and the padding type. A binary can be padded with leading or trailing zeros.
Link to this section Types
@type pad_type() :: :leading | :trailing
The pad_type describes the padding to use.
Link to this section Functions
@spec int_to_big(non_neg_integer(), non_neg_integer()) :: binary()
pads binary according to the byte length and the padding type. A binary can be padded with leading or trailing zeros.