diff --git a/src/lib.rs b/src/lib.rs index 3bc712e8..cfd8b66b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/note_encryption.rs b/src/note_encryption.rs index 3faa885f..7e475491 100644 --- a/src/note_encryption.rs +++ b/src/note_encryption.rs @@ -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(act: &Action) -> Self { - OrchardDomain { rho: *act.nullifier() } + OrchardDomain { + rho: *act.nullifier(), + } } }