mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-25 16:44:46 +01:00
4.0 KiB
4.0 KiB
Changelog
[Unreleased]
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).
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).
Fixed
- cdk(mint):
SIG_ALLis not allowed inmelt(thesimplekid). - cdk(mint): On
swapverify correct number of sigs on outputs whenSigAll(thesimplekid).
Removed
- cdk(wallet): Remove unused argument
SplitTargetonmelt(thesimplekid).
[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.