Merge branch 'main' into zkbesu

This commit is contained in:
Fabio Di Fabio
2025-01-13 17:28:36 +01:00
317 changed files with 5189 additions and 2413 deletions

View File

@@ -233,6 +233,11 @@ public abstract class AbstractSECP256 implements SignatureAlgorithm {
return PROVIDER;
}
@Override
public ECDomainParameters getCurve() {
return curve;
}
/**
* Gets K calculator.
*

View File

@@ -20,6 +20,7 @@ import java.util.function.UnaryOperator;
import org.apache.tuweni.bytes.Bytes;
import org.apache.tuweni.bytes.Bytes32;
import org.bouncycastle.crypto.params.ECDomainParameters;
import org.bouncycastle.math.ec.ECPoint;
/** The interface Signature algorithm. */
@@ -124,6 +125,13 @@ public interface SignatureAlgorithm {
*/
String getCurveName();
/**
* Bouncy castle ECDomainParameters representing the curve.
*
* @return instance of ECDomainParameters
*/
ECDomainParameters getCurve();
/**
* Create secp private key.
*