Merge pull request #138 from nuttycom/public_orchard_domain

Make note encryption OrchardDomain type public.
This commit is contained in:
str4d 2021-06-30 19:56:12 +01:00 committed by GitHub
commit 21b77d6ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -36,4 +36,5 @@ pub use address::Address;
pub use bundle::Bundle;
pub use circuit::Proof;
pub use note::Note;
pub use note_encryption::OrchardDomain;
pub use tree::Anchor;

View File

@ -87,7 +87,9 @@ pub struct OrchardDomain {
impl OrchardDomain {
/// Constructs a domain that can be used to trial-decrypt this action's output note.
pub fn for_action<T>(act: &Action<T>) -> Self {
OrchardDomain { rho: *act.nullifier() }
OrchardDomain {
rho: *act.nullifier(),
}
}
}