2021-03-17 02:17:01 -07:00
|
|
|
//! Sinsemilla generators
|
|
|
|
|
2021-03-23 21:16:53 -07:00
|
|
|
/// Number of bits of each message piece in $\mathsf{SinsemillaHashToPoint}$
|
2021-03-17 02:17:01 -07:00
|
|
|
pub const K: usize = 10;
|
|
|
|
|
2021-03-23 21:16:53 -07:00
|
|
|
/// The largest integer such that $2^c \leq (r_P - 1) / 2$, where $r_P$ is the order
|
2021-03-17 02:17:01 -07:00
|
|
|
/// of Pallas.
|
|
|
|
pub const C: usize = 253;
|
|
|
|
|
|
|
|
// Sinsemilla Q generators
|
2021-03-23 21:16:53 -07:00
|
|
|
|
|
|
|
/// SWU hash-to-curve personalization for Sinsemilla $Q$ generators.
|
2021-03-17 02:17:01 -07:00
|
|
|
pub const Q_PERSONALIZATION: &str = "z.cash:SinsemillaQ";
|
|
|
|
|
|
|
|
// Sinsemilla S generators
|
|
|
|
|
2021-03-23 21:16:53 -07:00
|
|
|
/// SWU hash-to-curve personalization for Sinsemilla $S$ generators.
|
2021-03-17 02:17:01 -07:00
|
|
|
pub const S_PERSONALIZATION: &str = "z.cash:SinsemillaS";
|