package ttweetnacl

  1. Overview
  2. Docs

Module Sign.Public_keySource

Public keys.

Use keypair to generate one.

Sourcetype t

The type for public keys.

Sourceval length : int

length is the byte length of public keys.

Sourceval equal : t -> t -> bool

equal pk pk' determines in constant time if pk and pk' are bytewise equal.

Sourceval of_bytes : Bytes.t -> t

of_bytes b is a public key from bytes b. Raises Invalid_argument if b's length differs from length.

Sourceval to_bytes : t -> Bytes.t

to_bytes pk are the bytes of pk.

Sourceval pp : Format.formatter -> t -> unit

pp ppf pk is an unspecified formatter for public keys.