CryptoParams

org.sigilaris.core.crypto.internal.CryptoParams
object CryptoParams

Shared secp256k1 curve parameters and cryptographic utilities.

Provides pre-computed curve parameters, signature normalization, constant- time operations, and caching policy for the JVM crypto implementation.

Attributes

Note

This is an internal module. Public API should use org.sigilaris.core.crypto.CryptoOps instead.

Source
CryptoParams.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object CachePolicy

Caching policy for elliptic curve point and coordinate computations.

Caching policy for elliptic curve point and coordinate computations.

Controls whether intermediate cryptographic computations (EC points, x/y coordinates, byte arrays) are cached for performance. Caching can be disabled via system property for debugging or reduced memory footprint.

Attributes

Source
CryptoParams.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object ConstTime

Constant-time cryptographic operations to prevent timing attacks.

Constant-time cryptographic operations to prevent timing attacks.

Attributes

Source
CryptoParams.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ConstTime.type

Value members

Concrete methods

inline def isHighS(s: BigInteger): Boolean

Checks if a signature's s-value is in High-S form (s > n/2).

Checks if a signature's s-value is in High-S form (s > n/2).

Value parameters

s

signature s-value

Attributes

Returns

true if s > n/2 (High-S), false otherwise

Source
CryptoParams.scala
inline def normalizeS(s: BigInteger): BigInteger

Normalizes a signature's s-value to Low-S form (s ≤ n/2).

Normalizes a signature's s-value to Low-S form (s ≤ n/2).

If s > n/2, returns n - s. Otherwise returns s unchanged. This prevents signature malleability.

Value parameters

s

signature s-value

Attributes

Returns

normalized s-value (s ≤ n/2)

Source
CryptoParams.scala

Concrete fields

val curve: ECDomainParameters

secp256k1 domain parameters (curve, generator, order, cofactor).

secp256k1 domain parameters (curve, generator, order, cofactor).

Attributes

Source
CryptoParams.scala
val curveParams: X9ECParameters

secp256k1 curve parameters from BouncyCastle.

secp256k1 curve parameters from BouncyCastle.

Attributes

Source
CryptoParams.scala
val fixedPointMultiplier: FixedPointCombMultiplier

Fixed-point multiplier for efficient scalar multiplication.

Fixed-point multiplier for efficient scalar multiplication.

Attributes

Source
CryptoParams.scala
val halfCurveOrder: BigInteger

Half of the secp256k1 curve order (n/2), used for Low-S normalization.

Half of the secp256k1 curve order (n/2), used for Low-S normalization.

Attributes

Source
CryptoParams.scala
val x9: X9IntegerConverter

Integer converter for elliptic curve point encoding.

Integer converter for elliptic curve point encoding.

Attributes

Source
CryptoParams.scala