From 81bb6307aca4fe1784f1834d28a4d73d62b9e745 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Sun, 16 Jul 2023 18:20:35 -0400 Subject: [PATCH] remove `p2pksig` from `NUT-00` proof https://github.com/cashubtc/nuts/pull/39 --- src/dhke.rs | 1 - src/nuts/nut00.rs | 7 ------- src/wallet.rs | 1 - 3 files changed, 9 deletions(-) diff --git a/src/dhke.rs b/src/dhke.rs index e0a2dcc8..da75cc42 100644 --- a/src/dhke.rs +++ b/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); diff --git a/src/nuts/nut00.rs b/src/nuts/nut00.rs index 706ae658..57761558 100644 --- a/src/nuts/nut00.rs +++ b/src/nuts/nut00.rs @@ -194,9 +194,6 @@ pub struct Proof { pub c: PublicKey, /// `Keyset id` pub id: Option, - #[serde(skip_serializing_if = "Option::is_none")] - /// P2SHScript that specifies the spending condition for this Proof - pub script: Option, } /// List of proofs @@ -209,7 +206,6 @@ impl From 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, /// `Keyset id` pub id: Option, - #[serde(skip_serializing_if = "Option::is_none")] - /// P2SHScript that specifies the spending condition for this Proof - pub script: Option, } /// List of proofs diff --git a/src/wallet.rs b/src/wallet.rs index 53db8ace..f288fc51 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -171,7 +171,6 @@ impl Wallet { amount: promise.amount, secret: secrets[i].clone(), c: unblinded_sig, - script: None, }; proofs.push(proof);