code: function bnToBuffer( bn ) {
    var hex = bn.toString( 16 )
    hex = hex.length % 2 === 1 ? '0' + hex : hex
    return Buffer.from( hex, 'hex' )
  }
docs: Convert a BigNum into a Buffer
  @internal
  @param  {BigNum} bn
  @return {Buffer}