Module Webs_passkey.Public_key

Public keys.

type algorithm =
  1. | Es256
    (*

    ECDSA with SHA-256.

    *)
  2. | Ed25519
    (*

    EdDSA with Curve25519 and SHA-512

    *)

The type for public key algorithms.

type t

The type for public keys.

val make : algorithm -> raw_value:string -> t

make algo ~value is ay key with given algorithm and raw binary key value.

val algorithm : t -> algorithm

algorithm k is the algorithm of k.

val raw_value : t -> string

raw_value k is the raw binary key value.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats a public key for inspection.