package capnp-rpc-net

  1. Overview
  2. Docs
Cap'n Proto is a capability-based RPC system with bindings for many languages

Install

dune-project
 Dependency

Authors

Maintainers

Sources

capnp-rpc-2.1.1.tbz
sha256=6e9675034c8eac5873ed511f9b968db5223278145bb02ac4a970053a53970a48
sha512=2e2eb8389071bdad3ceef1d15200bf28987f13319f754f4d1603828d0d79202b4de90a6eb294f12ee088c7e3b73755286fbe7076b8fd3d0b29644221e0e7e080

doc/capnp-rpc-net/Capnp_rpc_net/Auth/Secret_key/index.html

Module Auth.Secret_keySource

Sourcetype t

A vat's secret_key allows it to prove its identity to other vats.

Sourceval generate : unit -> t

generate () is a fresh secret key. You must use e.g. Mirage_crypto_rng_eio.run to set a source of randomness before using this (it will raise an error if you forget).

Sourceval digest : ?hash:hash -> t -> Digest.t

digest ~hash t is the digest of t's public key, using hash.

Sourceval of_pem_data : string -> t

of_pem_data data parses data as a PEM-encoded private key.

Sourceval to_pem_data : t -> string

to_pem_data t returns t as a PEM-encoded private key.

Sourceval tls_client_config : t -> authenticator:X509.Authenticator.t -> Tls.Config.client

tls_client_config t ~authenticator is the TLS client configuration to use for a vat with secret key t, attempting to connect to a vat that can be authenticated with authenticator.

Sourceval tls_server_config : t -> Tls.Config.server

tls_server_config t is the TLS server configuration to use for a vat with secret key t.

Sourceval pp_fingerprint : hash -> t Fmt.t

pp_fingerprint hash formats the hash of t's public key.

Sourceval equal : t -> t -> bool