We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
type ExpandMsg
VoprfParameters
1 parent 6fbdc17 commit f5880f8Copy full SHA for f5880f8
elliptic-curve/src/voprf.rs
@@ -3,6 +3,7 @@
3
//! <https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/>
4
5
use crate::PrimeCurve;
6
+use crate::hash2curve::ExpandMsg;
7
8
/// Elliptic curve parameters used by VOPRF.
9
pub trait VoprfParameters: PrimeCurve {
@@ -17,4 +18,10 @@ pub trait VoprfParameters: PrimeCurve {
17
18
///
19
/// [voprf]: https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-19.html#name-ciphersuites-2
20
type Hash: digest::Digest;
21
+
22
+ /// The `expand_message` parameter which assigns a particular algorithm for `HashToGroup`
23
+ /// and `HashToScalar` as defined in [section 4 of `draft-irtf-cfrg-voprf-19`][voprf].
24
+ ///
25
+ /// [voprf]: https://www.rfc-editor.org/rfc/rfc9497#name-ciphersuites
26
+ type ExpandMsg: for<'a> ExpandMsg<'a>;
27
}
0 commit comments