package sodium-fmt

  1. Overview
  2. Docs

Module Scalar_mult.BytesSource

Bytes offers versions of each of the above formatters, which get their value from a bytes value.

Sourcetype storage = bytes
Sourceval group_elt : storage Fmt.t

group_elt formats a group_elt in this fashion: (Scalar_mult.group_elt AAAAAA==). If the storage value is not Sodium.Scalar_mult.group_elt_size bytes long, it will be formatted as (Scalar_mult.group_elt <size mismatch>).

Sourceval integer : storage Fmt.t

integer formats a integer in this fashion: (Scalar_mult.integer AAAAAA==). If the storage value is not Sodium.Scalar_mult.integer_size bytes long, it will be formatted as (Scalar_mult.integer <size mismatch>).