bdk_chain::bitcoin::secp256k1

Module scalar

Expand description

Provides Scalar and related types.

In elliptic curve cryptography scalars are non-point values that can be used to multiply points. The most common type of scalars are private keys. However not all scalars are private keys. They can even be public values. To make handling them safer and easier this module provides the Scalar type and related.

Structsยง

  • Error returned when the value of scalar is invalid - larger than the curve order.
  • Positive 256-bit integer guaranteed to be less than the secp256k1 curve order.