tezos-base

Tezos: meta-package and pervasive type definitions for Tezos
Library tezos-base

Type of an identity, comprising a peer_id, a cryptographic key pair, and a proof of work stamp with enough difficulty so that the network accept this identity as genuine.

val encoding : t Data_encoding.t

generate target is a freshly minted identity whose proof of work stamp difficulty is at least equal to target.

val generate_with_bound : ?max:int -> Tezos_crypto.Crypto_box.target -> t