Struct snapps_txn_reference_impl::primitives::Pallas[][src]

pub struct Pallas {}
Expand description

A point on the ‘Pallas’ 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 Fp.

Points on the Pallas curve form a prime group of order 28948022309329048855892746252171976963363056481941560715954676764349967630337 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 = 12418654782883325593414442427049395787963493412651469444558597405572177144507

The standard elliptic curve addition group operation on the pallas 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.

Compute the ‘compressed’ representation of a public key.

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.