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:receive
will not claimproofs
from a mint other then the wallet's mint ([thesimplekid]). - cdk(NUT00):
Token
is changed from astruct
toenum
of eitherTokenV4
orTokenv3
([thesimplekid]). - cdk(NUT00): Rename
MintProofs
toTokenV3Token
([thesimplekid]). - cdk(wallet): Additional arguments in
send
send_kind
andinclude_fees
for control of how to handle fees in a send ([thesimplekid]). - cdk(wallet): Additional arguments in
create_swap
include_fees
for 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_proof
functions to claim specific proofs instead of encoded token ([thesimplekid]). - cdk-cli: Flag on
send
to print v3 token, default is v4 ([thesimplekid]). - cdk:
MintLightning
trait ([thesimplekid]). - cdk-mintd: Mint binary ([thesimplekid]).
- cdk-cln: cln backend for mint ([thesimplekid]).
- cdk-axum: Mint axum server ([thesimplekid]).
- cdk: NUT06
MintInfo
andNUTs
builder ([thesimplekid]). - cdk: NUT00
PreMintSecret
added Keyset id ([thesimplekid]). - cdk: NUT02 Support fees ([thesimplekid]).
Fixed
- cdk: NUT06 deseralize
MintInfo
([thesimplekid]).
Full Changelog: v0.1.1...v0.2.0