Browse Source

remove `p2pksig` from `NUT-00` proof

https://github.com/cashubtc/nuts/pull/39
thesimplekid 1 year ago
parent
commit
81bb6307ac
3 changed files with 0 additions and 9 deletions
  1. 0 1
      src/dhke.rs
  2. 0 7
      src/nuts/nut00.rs
  3. 0 1
      src/wallet.rs

+ 0 - 1
src/dhke.rs

@@ -101,7 +101,6 @@ pub fn construct_proofs(
             amount: promise.amount,
             secret: secrets[i].clone(),
             c: unblinded_signature,
-            script: None,
         };
 
         proofs.push(proof);

+ 0 - 7
src/nuts/nut00.rs

@@ -194,9 +194,6 @@ pub struct Proof {
     pub c: PublicKey,
     /// `Keyset id`
     pub id: Option<String>,
-    #[serde(skip_serializing_if = "Option::is_none")]
-    /// P2SHScript that specifies the spending condition for this Proof
-    pub script: Option<String>,
 }
 
 /// List of proofs
@@ -209,7 +206,6 @@ impl From<Proof> for mint::Proof {
             secret: proof.secret,
             c: Some(proof.c),
             id: proof.id,
-            script: proof.script,
         }
     }
 }
@@ -234,9 +230,6 @@ pub mod mint {
         pub c: Option<PublicKey>,
         /// `Keyset id`
         pub id: Option<String>,
-        #[serde(skip_serializing_if = "Option::is_none")]
-        /// P2SHScript that specifies the spending condition for this Proof
-        pub script: Option<String>,
     }
 
     /// List of proofs

+ 0 - 1
src/wallet.rs

@@ -171,7 +171,6 @@ impl Wallet {
                 amount: promise.amount,
                 secret: secrets[i].clone(),
                 c: unblinded_sig,
-                script: None,
             };
 
             proofs.push(proof);