mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-10 15:45:59 +01:00
remove p2pksig from NUT-00 proof
https://github.com/cashubtc/nuts/pull/39
This commit is contained in:
@@ -101,7 +101,6 @@ pub fn construct_proofs(
|
||||
amount: promise.amount,
|
||||
secret: secrets[i].clone(),
|
||||
c: unblinded_signature,
|
||||
script: None,
|
||||
};
|
||||
|
||||
proofs.push(proof);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -171,7 +171,6 @@ impl Wallet {
|
||||
amount: promise.amount,
|
||||
secret: secrets[i].clone(),
|
||||
c: unblinded_sig,
|
||||
script: None,
|
||||
};
|
||||
|
||||
proofs.push(proof);
|
||||
|
||||
Reference in New Issue
Block a user