Webs_passkey.Public_key
Public keys.
type algorithm =
| Es256
ECDSA with SHA-256.
| 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.
make algo ~value
val algorithm : t -> algorithm
algorithm k is the algorithm of k.
algorithm k
k
val raw_value : t -> string
raw_value k is the raw binary key value.
raw_value k
val pp : Stdlib.Format.formatter -> t -> unit
pp formats a public key for inspection.
pp