Update src/note_encryption.rs

Co-authored-by: str4d <jack@electriccoin.co>
This commit is contained in:
Kris Nuttycombe 2021-06-30 11:58:28 -06:00 committed by GitHub
parent 1e95360a74
commit 234eed9cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ 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() }
}