tezos-base
Tezos: meta-package and pervasive type definitions for Tezos
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package tezos-base
-
tezos-base
-
-
tezos-base.unix
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library tezos-base
type t = {
peer_id : P2p_peer.Id.t; |
public_key : Tezos_crypto.Crypto_box.public_key; |
secret_key : Tezos_crypto.Crypto_box.secret_key; |
proof_of_work_stamp : Tezos_crypto.Crypto_box.nonce; |
}
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
val generate : Tezos_crypto.Crypto_box.target -> 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
ON THIS PAGE
No table of contents