frost-dkg 0.6.0

An implementation of the FROST Distributed Key Generation protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::*;
use curve25519_dalek::Scalar;
use sha2::Digest;

impl ScalarHash for Scalar {
    fn hash_to_scalar(bytes: &[u8]) -> Self {
        let mut hash = sha2::Sha512::new();
        hash.update(bytes);
        Scalar::from_hash(hash)
    }
}