Struct snapps_txn_reference_impl::primitives::Vesta[][src]

pub struct Vesta {}
Expand description

A point on the ‘Vesta’ elliptic curve.

Points on this curve are defined by the equation y^2 = x^3 + a*x + b with the constants a = 0 and b = 5, where x and y are elements of the finite field Fq.

Points on the Vesta curve form a prime group of order 28948022309329048855892746252171976963363056481941647379679742748393362948097 under the standard elliptic curve addition operation.

Implementations

The elliptic curve point used as the generator for the group.

This is the constant point defined by x = 1, y = 11426906929455361843568202299992114520848200991084027513389447476559454104162

The standard elliptic curve addition group operation on the Vesta curve.

The standard elliptic curve scaling operation.

scale(a, s) = add(add(...add(a, a), ..., a), a), where add is applied s times.

Note that s is an element of the finite field of the same order as the group formed under add.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.