Skip to content

v0.3.0

Compare
Choose a tag to compare
@thesimplekid thesimplekid released this 31 Aug 19:24
· 143 commits to main since this release
1cd80de

Summary

In this release LNbits, Strike API, and LND were added as supported lightning backends for the mint. The strike api supports both bitcoin denomination as well as fiat currency.

Changed

  • cdk(wallet): fn send returns Token so the user can use the struct of convert it to a v3 or v4 string (thesimplekid).
  • cdk(wallet): Publicly export MultiMintWallet (thesimplekid).
  • cdk(cdk-database/mint): Get pending and spent proofs by ys or secrets instead of a single proofs (thesimplekid).
  • cdk(cdk-database/mint): Change add_blind_signature to add_blind_signatures (thesimplekid).
  • cdk(cdk-database/mint): Rename add_active_keyset to set_active_keyset (thesimplekid).
  • cdk(cdk-database/wallet): Change get_proofs to return Vec<ProofInfo> instead of Option<Vec<ProofInfo>> (thesimplekid).
  • cdk-cli: Receive will add wallet when receiving if mint is unknown (thesimplekid).
  • cdk(cdk-database/mint): Rename get_blinded_signatures to get_blind_signatures (thesimplekid).
  • cdk(cdk-database/mint): Rename get_blinded_signatures_for_keyset to get_blind_signatures_for_keyset (thesimplekid).
  • cdk(mint): typo rename total_redeame to total_redeemed (vnprc)
  • cdk(mint): Refactored MintKeySet::generate_from_xpriv and MintKeySet::generate_from_seed methods to accept max_order, currency_unit, and derivation_path parameters directly (vnprc).
  • cdk(wallet): Return WalletKey for UnknownWallet error (davidcaseria).
  • cdk(cdk-lightning): CreateInvoiceResponse added expiry time to better support backends where it cannot be set (thesimplekid).
  • cdk(cdk-lightning): Use Amount type instead of u64 (thesimplekid).
  • cdk(cdk-lightning): CreateInvoice requires unit argument (thesimplekid).
  • cdk(cdk/multi_mint_wallet): get_balances returns a BTreeMap instead of HashMap (thesimplekid).

Added

  • cdk(NUT-11): Add Copy on SigFlag (thesimplekid).
  • cdk(wallet): Add fn send_proofs that marks proofs as reserved and creates token (thesimplekid).
  • cdk(wallet): Add fn melt_proofs that uses specific proofs for melt instead of selecting (thesimplekid).
  • cdk-cli(receive): Add support for signing keys to be nostr nsec encoded (thesimplekid).
  • cdk-fake-wallet: Add Fake wallet for testing (thesimplekid).
  • cdk(cdk-database/mint): Add add_proofs, get_proofs_by_ys, get_proofs_states, and update_proofs_states (thesimplekid).
  • cdk(cdk-database/mint): Add get_blinded_signatures_for_keyset to get all blind signatures for a keyset_id (thesimplekid).
  • cdk(mint): Add total_issued and total_redeamed (thesimplekid).
  • cdk(cdk-database/mint) Add get_proofs_by_keyset_id (thesimplekid).
  • cdk(wallet/mint): Add mint_icon_url (cjbeery24).
  • cdk: Add MintUrl that sanatizes mint url by removing trailing / (cjbeery24).
  • cdk(cdk-database/mint): Add update_proofs that both adds new ProofInfos to the db and deletes (davidcaseria).
  • cdk(cdk-database/mint): Add set_pending_proofs, reserve_proofs, and set_unspent_proofs (davidcaseria).

Fixed

  • cdk(mint): SIG_ALL is not allowed in melt (thesimplekid).
  • cdk(mint): On swap verify correct number of sigs on outputs when SigAll (thesimplekid).
  • cdk(mint): Use amount in payment_quote response from ln backend (thesimplekid).
  • cdk(mint): Create new keysets for added supported units (thesimplekid).
  • cdk(mint): If there is an error in swap proofs should be reset to unspent (thesimplekid).

Removed

  • cdk(wallet): Remove unused argument SplitTarget on melt (thesimplekid).
  • cdk(cdk-database/mint): Remove get_spent_proofs, get_spent_proofs_by_ys,get_pending_proofs, get_pending_proofs_by_ys, and remove_pending_proofs (thesimplekid).
  • cdk: Remove UncheckedUrl in favor of MintUrl (cjbeery24).
  • cdk(cdk-database/mint): Remove set_proof_state, remove_proofs and add_proofs (davidcaseria).

New Contributors

Full Changelog: v0.2.0...v0.3.0