diff --git a/src/note_encryption.rs b/src/note_encryption.rs index 8f34d603..1570cebd 100644 --- a/src/note_encryption.rs +++ b/src/note_encryption.rs @@ -84,6 +84,12 @@ pub struct OrchardDomain { rho: Nullifier, } +impl OrchardDomain { + pub fn for_action(act: &Action) -> Self { + OrchardDomain { rho: *act.nullifier() } + } +} + impl Domain for OrchardDomain { type EphemeralSecretKey = EphemeralSecretKey; type EphemeralPublicKey = EphemeralPublicKey;