public static SECPSignature decode(final Bytes bytes, final BigInteger curveOrder) {
    checkArgument(
        bytes.size() == BYTES_REQUIRED, "encoded SECP256K1 signature must be 65 bytes long");

    final BigInteger r = bytes.slice(0, 32).toUnsignedBigInteger();
    final BigInteger s = bytes.slice(32, 32).toUnsignedBigInteger();
    final byte recId = bytes.get(64);
    return SECPSignature.create(r, s, recId, curveOrder);
  }
Decode secp signature.

@param bytes the bytes
@param curveOrder the curve order
@return the secp signature
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/SECPSignature.java