package tezos-protocol-environment
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-environment.structs/Tezos_protocol_environment_structs/V1/Signature/index.html
Module V1.Signature
Source
include module type of struct include Tezos_crypto.Signature.V0 end
type watermark = Tezos_crypto.Signature.V0.watermark =
| Block_header of Tezos_crypto__.Chain_id.t
| Endorsement of Tezos_crypto__.Chain_id.t
| Generic_operation
| Custom of Bytes.t
type signature = Tezos_crypto.Signature.V0.signature =
| Ed25519 of Tezos_crypto__.Ed25519.t
| Secp256k1 of Tezos_crypto__.Secp256k1.t
| P256 of Tezos_crypto__.P256.t
| Unknown of Bytes.t
include Tezos_stdlib.Compare.S with type t := t
sign ?watermark sk message
produce the signature of message
(with possibly watermark
) using sk
.
check pk ?watermark signature message
check that signature
is the signature produced by signing message
(with possibly watermark
) with the secret key of pk
.
deterministic_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
.
The list of signing algorithm supported, i.e. all constructors of type algo{
.
val generate_key :
?algo:algo ->
?seed:Bytes.t ->
unit ->
public_key_hash * public_key * secret_key
Converting from signatures of V_latest
to V0
.