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 Objecttrait Matchableclass Any
- Self type
-
CryptoParams.type
Members list
Type members
Classlikes
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 Objecttrait Matchableclass Any
- Self type
-
CachePolicy.type
Constant-time cryptographic operations to prevent timing attacks.
Constant-time cryptographic operations to prevent timing attacks.
Attributes
- Source
- CryptoParams.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConstTime.type
Value members
Concrete methods
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
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
secp256k1 domain parameters (curve, generator, order, cofactor).
secp256k1 domain parameters (curve, generator, order, cofactor).
Attributes
- Source
- CryptoParams.scala
secp256k1 curve parameters from BouncyCastle.
Fixed-point multiplier for efficient scalar multiplication.
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
Integer converter for elliptic curve point encoding.