mirror of https://github.com/zcash/halo2.git
Merge pull request #138 from nuttycom/public_orchard_domain
Make note encryption OrchardDomain type public.
This commit is contained in:
commit
21b77d6ec5
|
@ -36,4 +36,5 @@ pub use address::Address;
|
||||||
pub use bundle::Bundle;
|
pub use bundle::Bundle;
|
||||||
pub use circuit::Proof;
|
pub use circuit::Proof;
|
||||||
pub use note::Note;
|
pub use note::Note;
|
||||||
|
pub use note_encryption::OrchardDomain;
|
||||||
pub use tree::Anchor;
|
pub use tree::Anchor;
|
||||||
|
|
|
@ -87,7 +87,9 @@ pub struct OrchardDomain {
|
||||||
impl OrchardDomain {
|
impl OrchardDomain {
|
||||||
/// Constructs a domain that can be used to trial-decrypt this action's output note.
|
/// Constructs a domain that can be used to trial-decrypt this action's output note.
|
||||||
pub fn for_action<T>(act: &Action<T>) -> Self {
|
pub fn for_action<T>(act: &Action<T>) -> Self {
|
||||||
OrchardDomain { rho: *act.nullifier() }
|
OrchardDomain {
|
||||||
|
rho: *act.nullifier(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue