Module zkstd::common

source ·
Expand description

export necessary traits for crypto Substrate compatible.

Re-exports

Modules

  • A contiguous growable array type with heap-allocated contents, written Vec<T>.

Macros

  • Creates a Vec containing the arguments.

Structs

  • Configuration for formatting.
  • A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums

  • An Ordering is the result of a comparison between two values.

Traits

  • The addition operator +.
  • The addition assignment operator +=.
  • basic struct trait
  • The bitwise AND operator &.
  • The bitwise XOR operator ^.
  • elliptic curve rational point affine representation
  • extend curve point representation projective, jacobian and so on
  • ? formatting.
  • Trait that allows zero-copy read of value-references from slices in LE format.
  • Format trait for an empty format, {}.
  • The division operator /.
  • The division assignment operator /=.
  • Trait that allows zero-copy write of value-references to slices in LE format.
  • extension field
  • This is fft field This is used for fft and has roots of unity
  • field trait which ensures the existence of inverse for both multiplicative and additive arithmetic hence field supports division for any element
  • G2 group pairing interface
  • group trait which supports additive and scalar arithmetic additive and scalar arithmetic hold associative and distributive property any element has its inverse and these is the identity in group existence of inverse is ensured for only additive arithmetic
  • x formatting.
  • The multiplication operator *.
  • The multiplication assignment operator *=.
  • The unary negation operator -.
  • pairing abstraction
  • pairing function range field
  • parallelize compatible pallet
  • parity compatible pallet
  • This is polynomial This has fft functionality and represents polynomial ring
  • This is prime field trait
  • ring trait which supports additive and multiplicative arithmetics both arithmetics hold associative and distributive property default element is multiplicative generator
  • The core of a random number generator.
  • substrate runtime pallet
  • The subtraction operator -.
  • The subtraction assignment operator -=.
  • rational point affine representation affine representation check that a point is infinite by the struct field
  • elliptic curve rational points group rational points group behaves as abelian group
  • rational point projective representation projective representation check that a point is infinite by z coordinate

Type Aliases

  • The type returned by formatter methods.

Derive Macros

  • Derive macro generating an impl of the trait Debug.
  • Derive parity_scale_codec::Decode and for struct and enum.
  • Derive parity_scale_codec::Encode and parity_scale_codec::EncodeLike for struct and enum.