chore: remove unneeded verify

This commit is contained in:
thesimplekid
2024-03-03 20:48:52 +00:00
parent 1bc9ad3528
commit 6afb873d05

View File

@@ -31,7 +31,7 @@ pub enum Error {
#[error("Insufficient Funds")]
InsufficientFunds,
#[error("`{0}`")]
Cashu(#[from] cashu::error::wallet::Error),
CashuWallet(#[from] cashu::error::wallet::Error),
#[error("`{0}`")]
Client(#[from] crate::client::Error),
/// Cashu Url Error
@@ -46,6 +46,8 @@ pub enum Error {
#[error("`{0}`")]
LocalStore(#[from] localstore::Error),
#[error("`{0}`")]
Cashu(#[from] cashu::error::Error),
#[error("`{0}`")]
Custom(String),
}
@@ -795,8 +797,7 @@ impl<C: Client, L: LocalStore> Wallet<C, L> {
for pubkey in pubkeys {
if let Some(signing) = pubkey_secret_key.get(&pubkey.to_string()) {
proof.sign_p2pk(signing.clone()).unwrap();
proof.verify_p2pk().unwrap();
proof.sign_p2pk(signing.clone())?;
}
}