orchard/src/primitives/sinsemilla/constants.rs

19 lines
568 B
Rust
Raw Normal View History

2021-03-17 02:17:01 -07:00
//! Sinsemilla generators
/// Number of bits of each message piece in $\mathsf{SinsemillaHashToPoint}$
2021-03-17 02:17:01 -07:00
pub const K: usize = 10;
/// 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
/// 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
/// 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";