Tezos_crypto.SignatureSourcetype public_key_hash = | Ed25519 of Ed25519.Public_key_hash.t| Secp256k1 of Secp256k1.Public_key_hash.t| P256 of P256.Public_key_hash.ttype public_key = | Ed25519 of Ed25519.Public_key.t| Secp256k1 of Secp256k1.Public_key.t| P256 of P256.Public_key.ttype secret_key = | Ed25519 of Ed25519.Secret_key.t| Secp256k1 of Secp256k1.Secret_key.t| P256 of P256.Secret_key.ttype watermark = | Block_header of Chain_id.t| Endorsement of Chain_id.t| Generic_operation| Custom of Bytes.tinclude S.SIGNATURE
with type Public_key_hash.t = public_key_hash
and type Public_key.t = public_key
and type Secret_key.t = secret_key
and type watermark := watermarkinclude Tezos_stdlib.Compare.S with type t := tdeterministic_nonce sk msg returns a nonce that is determined by sk and msg
deterministic_nonce_hash sk msg returns the BLAKE2b hash of a nonce that is determined by sk and msg.
In other words, Blake2b.digest (deterministic_nonce sk msg) = deterministic_nonce_hash sk msg
append sk buf is the concatenation of buf and the serialization of the signature of buf signed by sk.
concat buf t is the concatenation of buf and the serialization of t.
val generate_key :
?algo:algo ->
?seed:Bytes.t ->
unit ->
public_key_hash * public_key * secret_key