remove p2pksig from NUT-00 proof

https://github.com/cashubtc/nuts/pull/39
This commit is contained in:
thesimplekid
2023-07-16 18:20:35 -04:00
parent 6590ab1412
commit 81bb6307ac
3 changed files with 0 additions and 9 deletions

View File

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

View File

@@ -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

View File

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