@Override
  public boolean equals(final Object other) {
    if (!(other instanceof SECPPrivateKey)) {
      return false;
    }

    final SECPPrivateKey that = (SECPPrivateKey) other;
    return this.encoded.equals(that.encoded) && this.algorithm.equals(that.algorithm);
  }
Create secp private key.

@param key the key
@param algorithm the algorithm
@return the secp private key
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/SECPPrivateKey.java