Skip to content

Commit

Permalink
fix: make feilds pub in and
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Nov 6, 2023
1 parent dbe14cd commit 31115dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/cashu/src/nuts/nut10.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ pub enum Kind {
#[derive(Debug, Default, Clone, Deserialize, PartialEq, Eq, Serialize)]
pub struct SecretData {
/// Unique random string
nonce: String,
pub nonce: String,
/// Expresses the spending condition specific to each kind
data: String,
pub data: String,
/// Additional data committed to and can be used for feature extensions
#[serde(skip_serializing_if = "Option::is_none")]
tags: Option<Vec<Vec<String>>>,
pub tags: Option<Vec<Vec<String>>>,
}

#[derive(Debug, Default, Clone, Deserialize, PartialEq, Eq)]
pub struct Secret {
/// Kind of the spending condition
kind: Kind,
secret_data: SecretData,
pub kind: Kind,
pub secret_data: SecretData,
}

impl Serialize for Secret {
Expand Down

0 comments on commit 31115dd

Please sign in to comment.