mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-26 17:14:59 +01:00
9.5 KiB
9.5 KiB
Changelog
#[Unreleased]
Changed
- cdk: Bump
bitcointo0.32.2(prusnak). - cdk: Bump
lightning-invoiceto0.32.2(prusnak). - cdk: Bump
lightningto0.0.124(prusnak). - cdk:
PaymentMethodas anon_exhaustiveenum (thesimplekid). - cdk:
CurrencyUnitas anon_exhaustiveenum (thesimplekid). - cdk: Enforce token is single mint (thesimplekid).
- cdk: Mint will return change for over paid melt even over fee reserve (davidcaseria).
- cdk: Refactor ln_backeds to be on the
cdk::Mintand not with axum (thesimplekid). - cdk: Change is returned in the check quote response (thesimplekid).
- cdk: Move unit conversion util fn to amount module (davidcaseria).
- cdk: Remove spent proofs from db when check state is called (mubarak23).
- cdk: Use
MintUrldirectly in wallet client (ok300). - cdk-cli: Change cdk-cli pay command to melt (mubarak23).
- cdk: Rename
Wallet::get_proofstoWallet::get_unspent_proofs(ok300).
Added
- cdk: Added description to
MintQuoteBolt11Request(lollerfirst). - cdk(wallet): Added description to
mint_quote(lollerfirst). - cdk: Add
amountandfee_paidtoMelted(davidcaseria). - cdk: Add
from_proofsonMelted(davidcaseria). - cdk: Add unit on
PaymentResponse(thesimplekid). - cdk: Add description for mint quote (lollerfirst).
- cdk-axum: Add cache to some endpoints (lollerfirst).
- cdk: Add Proofs trait (ok300).
- cdk: Wallet verifiys keyset id when first fetching keys (thesimplekid).
- cdk-mind: Add swagger docs (ok300).
- cdk: NUT18 payment request support (thesimplekid).
- cdk: Add
Wallet::get_proofs_with(ok300).
Removed
- cdk: Remove
MintMeltSettingssince it is no longer used (lollerfirst). - cdk:
PaymentMethod::Custom(thesimplekid). - cdk: Remove deprecated
MeltBolt11Response(thesimplekid).
Fixed
- cdk: Check of inputs to include fee (thesimplekid).
- cdk: Make unit mandatory in tokenv4 (ok300).
#[0.4.0]
Summary
Changed
- cdk: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-axum: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-strike: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-lnbits: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-phoenixd: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-fake-wallet: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-cln: Reduce MSRV to 1.63.0 (thesimplekid).
- cdk-sqlite: Reduce MSRV to 1.66.0 (thesimplekid).
- cdk-redb: Reduce MSRV to 1.66.0 (thesimplekid).
- cdk: Format url base lowercase (callebtc).
- cdk: Use CDK error type instead of mint and wallet specific (thesimplekid).
- cdk-cli: Tokenv4 error print diagnostic notation (ok300).
- cdk-redb: Remove use of mutex (thesimplekid).
Added
- cdk: Multiple error types (thesimplekid).
Fixed
- cdk(mint): use checked addition on amount to ensure there is no overflow (thesimplekid).
Removed
- cdk(wallet): Removed CDK wallet error (thesimplekid).
- cdk(mint): Removed CDK mint error (thesimplekid).
[0.3.0]
Summary
Changed
- cdk(wallet):
fn sendreturnsTokenso 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
pendingandspentproofsbyysorsecretsinstead of a single proofs (thesimplekid). - cdk(cdk-database/mint): Change
add_blind_signaturetoadd_blind_signatures(thesimplekid). - cdk(cdk-database/mint): Rename
add_active_keysettoset_active_keyset(thesimplekid). - cdk(cdk-database/wallet): Change
get_proofsto returnVec<ProofInfo>instead ofOption<Vec<ProofInfo>>(thesimplekid). - cdk-cli: Receive will add wallet when receiving if mint is unknown (thesimplekid).
- cdk(cdk-database/mint): Rename
get_blinded_signaturestoget_blind_signatures(thesimplekid). - cdk(cdk-database/mint): Rename
get_blinded_signatures_for_keysettoget_blind_signatures_for_keyset(thesimplekid). - cdk(mint): typo rename
total_redeametototal_redeemed(vnprc) - cdk(mint): Refactored
MintKeySet::generate_from_xprivandMintKeySet::generate_from_seedmethods to accept max_order, currency_unit, and derivation_path parameters directly (vnprc). - cdk(wallet): Return WalletKey for UnknownWallet error (davidcaseria).
- cdk(cdk-lightning):
CreateInvoiceResponseadded expiry time to better support backends where it cannot be set (thesimplekid). - cdk(cdk-lightning): Use
Amounttype instead ofu64(thesimplekid). - cdk(cdk-lightning):
CreateInvoicerequires unit argument (thesimplekid). - cdk(cdk/multi_mint_wallet):
get_balancesreturns aBTreeMapinstead ofHashMap(thesimplekid).
Added
- cdk(NUT-11): Add
CopyonSigFlag(thesimplekid). - cdk(wallet): Add
fn send_proofsthat marks proofs asreservedand creates token (thesimplekid). - cdk(wallet): Add
fn melt_proofsthat uses specific proofs formeltinstead 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, andupdate_proofs_states(thesimplekid). - cdk(cdk-database/mint): Add
get_blinded_signatures_for_keysetto get all blind signatures for akeyset_id(thesimplekid). - cdk(mint): Add
total_issuedandtotal_redeamed(thesimplekid). - cdk(cdk-database/mint) Add
get_proofs_by_keyset_id(thesimplekid). - cdk(wallet/mint): Add
mint_icon_url(cjbeery24). - cdk: Add
MintUrlthat sanatizes mint url by removing trailing/(cjbeery24). - cdk(cdk-database/mint): Add
update_proofsthat both adds newProofInfos to the db and deletes (davidcaseria). - cdk(cdk-database/mint): Add
set_pending_proofs,reserve_proofs, andset_unspent_proofs(davidcaseria).
Fixed
- cdk(mint):
SIG_ALLis not allowed inmelt(thesimplekid). - cdk(mint): On
swapverify correct number of sigs on outputs whenSigAll(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
SplitTargetonmelt(thesimplekid). - cdk(cdk-database/mint): Remove
get_spent_proofs,get_spent_proofs_by_ys,get_pending_proofs,get_pending_proofs_by_ys, andremove_pending_proofs(thesimplekid). - cdk: Remove
UncheckedUrlin favor ofMintUrl(cjbeery24). - cdk(cdk-database/mint): Remove
set_proof_state,remove_proofsandadd_proofs(davidcaseria).
[v0.2.0]
Summary
This release introduces TokenV4, which uses CBOR encoding as the default token format. It also includes fee support for both wallet and mint operations.
When sending, the sender can choose to include the necessary fee to ensure that the receiver can redeem the full sent amount. If this is not done, the receiver will be responsible for the fee.
Additionally, this release introduces a Mint binary cdk-mintd that uses the cdk-axum crate as a web server to create a full Cashu mint. When paired with a Lightning backend, currently implemented as Core Lightning, it is included in this release as cdk-cln.
Changed
- cdk(wallet):
wallet:receivewill not claimproofsfrom a mint other then the wallet's mint (thesimplekid). - cdk(NUT00):
Tokenis changed from astructtoenumof eitherTokenV4orTokenv3(thesimplekid). - cdk(NUT00): Rename
MintProofstoTokenV3Token(thesimplekid). - cdk(wallet): Additional arguments in
sendsend_kindandinclude_feesfor control of how to handle fees in a send (thesimplekid). - cdk(wallet): Additional arguments in
create_swapinclude_feesfor control of if fees to redeam the send proofs are included in send amount (thesimplekid).
Added
- cdk: TokenV4 CBOR (davidcaseria/thesimplekid).
- cdk(wallet):
wallet::receive_prooffunctions to claim specific proofs instead of encoded token (thesimplekid). - cdk-cli: Flag on
sendto print v3 token, default is v4 (thesimplekid). - cdk:
MintLightningtrait (thesimplekid). - cdk-mintd: Mint binary (thesimplekid).
- cdk-cln: cln backend for mint (thesimplekid).
- cdk-axum: Mint axum server (thesimplekid).
- cdk: NUT06
MintInfoandNUTsbuilder (thesimplekid). - cdk: NUT00
PreMintSecretadded Keyset id (thesimplekid). - cdk: NUT02 Support fees (thesimplekid).
Fixed
- cdk: NUT06 deseralize
MintInfo(thesimplekid).
[v0.1.1]
Summary
Changed
- cdk(wallet):
wallet::total_pending_balancedoes not include reserved proofs (thesimplekid).
Added
- cdk(wallet): Added get reserved proofs thesimplekid.