frost_dalek/parameters.rs
1// -*- mode: rust; -*-
2//
3// This file is part of dalek-frost.
4// Copyright (c) 2020 isis lovecruft
5// See LICENSE for licensing information.
6//
7// Authors:
8// - isis agora lovecruft <isis@patternsinthevoid.net>
9
10//! Configurable parameters for an instance of a FROST signing protocol.
11
12/// The configuration parameters for conducting the process of creating a
13/// threshold signature.
14#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]
15pub struct Parameters {
16 /// The number of participants in the scheme.
17 pub n: u32,
18 /// The threshold required for a successful signature.
19 pub t: u32,
20}