You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe:
- The semantic/abstract policy is a rust-miniscript thing but the policy
language (`concrete::Policy`) is a general miniscript thing.
- The `semantic::Policy` can be created by lifting more than just a
concrete policy (eg, a descriptor).
Do the following:
- Move `src/policy/semantic.rs` to `src/lift/lifted.rs` (leaving the
type as `Policy`).
- Move the contents of `src/policy/mod.rs` (excl. tests/benches) to
`src/lift/mod.rs`.
- Add a re-export `lift::lifted::Policy as Lifted` and use it in other
parts of the code base.
Note, the idea to keep the `lifted::Policy` as is and re-export helps
keep this patch smaller but also gives some choice to how the type is
used
- `use crate::lift::Liftded` coupled with usage of `Lifted`.
- `use crate::lift::lifted` coupled with usage of `lifted::Policy`
We can the do a rename later if deemed appropriate.
0 commit comments