mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
feat: nut09 structs
This commit is contained in:
@@ -15,9 +15,10 @@ description = "Cashu rust wallet and mint library"
|
||||
default = ["mint", "wallet", "all-nuts"]
|
||||
mint = []
|
||||
wallet = []
|
||||
all-nuts = ["nut07", "nut08", "nut10", "nut11"]
|
||||
all-nuts = ["nut07", "nut08", "nut09", "nut10", "nut11"]
|
||||
nut07 = []
|
||||
nut08 = []
|
||||
nut09 = []
|
||||
nut10 = []
|
||||
nut11 = ["nut10"]
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@ pub mod nut06;
|
||||
pub mod nut07;
|
||||
#[cfg(feature = "nut08")]
|
||||
pub mod nut08;
|
||||
#[cfg(feature = "nut09")]
|
||||
pub mod nut09;
|
||||
#[cfg(feature = "nut10")]
|
||||
pub mod nut10;
|
||||
#[cfg(feature = "nut11")]
|
||||
|
||||
21
crates/cashu/src/nuts/nut09.rs
Normal file
21
crates/cashu/src/nuts/nut09.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
//! Nut-09: Restore signatures
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::{BlindedMessage, BlindedSignature};
|
||||
|
||||
/// Restore Request [NUT-09]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct RestoreRequest {
|
||||
/// Outputs
|
||||
pub outputs: Vec<BlindedMessage>,
|
||||
}
|
||||
|
||||
/// Restore Response [NUT-09]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct RestoreResponse {
|
||||
/// Outputs
|
||||
pub outputs: Vec<BlindedMessage>,
|
||||
/// Signatures
|
||||
pub signatures: Vec<BlindedSignature>,
|
||||
}
|
||||
Reference in New Issue
Block a user