function bytesToBinary (bytes) {
  return bytes.map(function (x) {
    return lpad(x.toString(2), '0', 8)
  }).join('')
}
// =========== helper methods from bitcoinjs-lib ========
helper methods from bitcoinjs-lib
helper methods from bitcoinjs - lib
function bytesToBinary (bytes) {
  return bytes.map(function (x) {
    return lpad(x.toString(2), '0', 8)
  }).join('')
}
function bytesToBinary ( bytes ) { return bytes . map ( function ( x ) { return lpad ( x . toString ( 2 ) , '0' , 8 ) } ) . join ( '' ) }
helper methods from bitcoinjs-lib
helper methods from bitcoinjs - lib