public static CodeDelegationSignature create(
      final BigInteger r, final BigInteger s, final byte yParity) {
    checkNotNull(r);
    checkNotNull(s);

    if (r.compareTo(TWO_POW_256) >= 0) {
      throw new IllegalArgumentException(
          "Invalid 'r' value, should be < 2^256 but got " + r.toString(16));
    }

    if (s.compareTo(TWO_POW_256) >= 0) {
      throw new IllegalArgumentException(
          "Invalid 's' value, should be < 2^256 but got " + s.toString(16));
    }

    return new CodeDelegationSignature(r, s, yParity);
  }
Create a new CodeDelegationSignature.

@param r the r part of the signature
@param s the s part of the signature
@param yParity the parity of the y coordinate of the public key
@return the new CodeDelegationSignature
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/CodeDelegationSignature.java