View Source Tezex.Crypto.Curve (tezex v1.0.0-rc3)

Specific elliptic curve data.

Parameters:

  • :A [number]: angular coefficient of x in the curve equation. ex: 123
  • :B [number]: linear coefficient of x in the curve equation. ex: 123
  • :P [number]: curve modulo. ex: 12345
  • :N [number]: curve order. ex: 12345
  • :G [%Point]: EC Point corresponding to the public key. ex: %Point{x: 123, y: 456}
  • :name [atom]: curve name. ex: :secp256k1

Link to this section Summary

Link to this section Types

@type t() :: %Tezex.Crypto.Curve{
  A: non_neg_integer(),
  B: non_neg_integer(),
  G: Tezex.Crypto.Point.t(),
  N: non_neg_integer(),
  P: non_neg_integer(),
  name: atom()
}