mirror of https://github.com/zcash/orchard.git
Add getters for Q() and R()
This commit is contained in:
parent
873e1b7d7e
commit
18fba2a62e
|
@ -115,6 +115,12 @@ impl HashDomain {
|
|||
pub(crate) fn hash(&self, msg: impl Iterator<Item = bool>) -> pallas::Base {
|
||||
extract_p(&self.hash_to_point(msg))
|
||||
}
|
||||
|
||||
/// Return `Q`
|
||||
#[allow(non_snake_case)]
|
||||
pub(crate) fn Q(&self) -> pallas::Point {
|
||||
self.Q
|
||||
}
|
||||
}
|
||||
|
||||
/// A domain in which [`sinsemilla::commit`] and
|
||||
|
@ -176,6 +182,18 @@ impl CommitDomain {
|
|||
) -> pallas::Base {
|
||||
extract_p(&self.commit(msg, r))
|
||||
}
|
||||
|
||||
/// Return `Q`
|
||||
#[allow(non_snake_case)]
|
||||
pub(crate) fn Q(&self) -> pallas::Point {
|
||||
self.Q
|
||||
}
|
||||
|
||||
/// Return `R`
|
||||
#[allow(non_snake_case)]
|
||||
pub(crate) fn R(&self) -> pallas::Point {
|
||||
self.R
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Reference in New Issue