Module scalar

Source
Expand description

Defines the scalar types that form the basis of the Starknet algebra

Structs§

Scalar
A wrapper around the inner scalar that allows us to implement foreign traits for the Scalar
StarknetFqConfig
The config for finite field that the Starknet curve is defined over
StarknetFrConfig
The config for the scalar field of the Starknet curve

Constants§

BASE_FIELD_BYTES
The number of bytes needed to represent an element of the base field
SCALAR_BYTES
The number of bytes in a Scalar

Type Aliases§

BatchScalarResult
A type alias for a result that resolves to a batch of Scalars
ScalarResult
A type alias for a result that resolves to a Scalar
StarknetBaseFelt
The finite field that the Starknet curve is defined over