package tezos-crypto
include Pvss.PVSS
module type ENCODED = sig ... end
module Commitment : ENCODED
module Public_key : sig ... end
module Secret_key : sig ... end
val proof_encoding : proof Data_encoding.t
Lets a dealer share a secret with a set of participant by breaking it into pieces, encrypting it with the participant's public keys, and publishing these encrypted shares. Any t = threshold participants can reconstruct the secret. A zero-knowledge proof is produced showing that the dealer correctly followed the protocol, making the protocol publicly verifiable.
val check_dealer_proof :
Encrypted_share.t list ->
Commitment.t list ->
proof:proof ->
public_keys:Public_key.t list ->
bool
Checks the proof produced by the dealer, given the encrypted shares, the commitment list, the proof, and the participant's public keys.
Lets a participant provably decrypt an encrypted share.
Checks that the participant honestly decrypted its share.
val reconstruct : Clear_share.t list -> int list -> Public_key.t
val generate_keys : ?seed:Stdlib.Bytes.t -> unit -> Public_key.t * Secret_key.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>