pub struct Set {
pub primary_id: u32,
pub prfs: HashMap<u32, Box<dyn Prf>>,
}
Expand description
Set
is a set of PRFs. A Keyset
can be converted into a set of PRFs
using this primitive. Every key in the keyset corresponds to a PRF in the prf.Set.
Every PRF in the set is given an ID, which is the same ID as the key id in
the Keyset
.
Fields§
§primary_id: u32
The key ID marked as primary in the corresponding Keyset
.
prfs: HashMap<u32, Box<dyn Prf>>
Map key IDs to their corresponding Prf.