function BasePoint(curve, type) {
  this.curve = curve;
  this.type = type;
  this.precomputed = null;
}
Converts a `BN` to an unsigned integer and returns it as a `Buffer`. Assumes 256-bit numbers.
@param {BN} num
@return {Buffer}