validate method

PrivKey validate()

Implementation

PrivKey validate() {
  if (!this.bn!.lt(PointWrapper.getN())) {
    throw INVALID_NUMBER_N;
  }
  if (this.compressed == null) {
    throw INVALID_COMPRESSED;
  }
  return this;
}