Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look at makeing this a trait and moving htlc out of 11 #395

Open
thesimplekid opened this issue Oct 9, 2024 · 0 comments
Open

Look at makeing this a trait and moving htlc out of 11 #395

thesimplekid opened this issue Oct 9, 2024 · 0 comments
Assignees

Comments

@thesimplekid
Copy link
Collaborator

/// Spending Conditions
///
/// Defined in [NUT10](https://github.com/cashubtc/nuts/blob/main/10.md)
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum SpendingConditions {
/// NUT11 Spending conditions
///
/// Defined in [NUT11](https://github.com/cashubtc/nuts/blob/main/11.md)
P2PKConditions {
/// The public key of the recipient of the locked ecash
data: PublicKey,
/// Additional Optional Spending [`Conditions`]
conditions: Option<Conditions>,
},
/// NUT14 Spending conditions
///
/// Dedined in [NUT14](https://github.com/cashubtc/nuts/blob/main/14.md)
HTLCConditions {
/// Hash Lock of ecash
data: Sha256Hash,
/// Additional Optional Spending [`Conditions`]
conditions: Option<Conditions>,
},
}

@thesimplekid thesimplekid self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant