mirror of https://github.com/zcash/halo2.git
Add for_action method for constructing an OrchardDomain
This commit is contained in:
parent
bb159a2ccf
commit
1e95360a74
|
@ -84,6 +84,12 @@ pub struct OrchardDomain {
|
|||
rho: Nullifier,
|
||||
}
|
||||
|
||||
impl OrchardDomain {
|
||||
pub fn for_action<T>(act: &Action<T>) -> Self {
|
||||
OrchardDomain { rho: *act.nullifier() }
|
||||
}
|
||||
}
|
||||
|
||||
impl Domain for OrchardDomain {
|
||||
type EphemeralSecretKey = EphemeralSecretKey;
|
||||
type EphemeralPublicKey = EphemeralPublicKey;
|
||||
|
|
Loading…
Reference in New Issue