Commit Graph

1158 Commits

Author SHA1 Message Date
ok300
0eb5805f6f Mint example config: remove stale cln_path reference (#694) 2025-03-30 10:30:58 +01:00
thesimplekid
52bfc8c9ce feat: nutshell itests (#691) 2025-03-29 22:04:43 +00:00
ok300
240e22c96a Remove stale crate references (#692) 2025-03-28 14:49:07 +00:00
thesimplekid
fa67271cca Int tests (#685)
* Here's a commit message for this change:

refactor: Move mint tests to fake_wallet.rs and add descriptive comments

refactor: pure wallet/mint does not need arc

refactor: Consolidate NUT-06 test into single function and remove redundant module

docs: Add comments explaining test purposes in integration tests file

refactor: Remove anyhow and replace with expect for error handling

refactor: use expect in pure tests

feat: Add configurable database type via environment variable for test mint and wallet

refactor: Update database initialization in test mint and wallet creation

feat: Add temporary directory support for redb and sqlite databases in tests

feat: Add database type argument to test commands in justfile

ci: Add build matrix for pure-itest with memory, sqlite, and redb databases

refactor: use expect in pure tests

refactor: Move and refactor `test_swap_unbalanced` from mint to integration tests pure

refactor: move mint tests to pure tests

docs: Add detailed comments explaining test file purposes for mint and integration tests

refactor: Extract keyset ID retrieval into a reusable function

test: Add concurrent double-spend test with 3 swap transactions

refactor: Simplify concurrent swap request processing and error handling

test: Add check to verify all proofs are marked as spent in concurrent double-spend test

refactor: Optimize proof state retrieval in concurrent double-spend test

feat: Add test for concurrent melt race condition with same proofs

fix: Update concurrent melt test to use melt quote and handle errors

refactor: melt concurrrent

refactor: Rename test function for clarity in concurrent double-spend scenario

refactor: Modify test_concurrent_double_spend_melt to manually create melt requests in mint tasks

feat: con melt test

refactor: Optimize proof state handling and error recovery in check_spendable

refactor: Extract helper method to reset proofs to original state

fix: reset y states

fix: reset y states

* fix: acces of priv feilds

* fix: add extra migrate
2025-03-27 12:48:36 +00:00
thesimplekid
5484e7c33a Merge pull request #690 from thesimplekid/request_without_dleq
Request without dleq
2025-03-27 08:45:02 +00:00
thesimplekid
4ba0b6c6ef Merge pull request #593 from BitcreditProtocol/peanut/mintdatabase_split
split MintDatabase into separate narrower scoped traits
2025-03-26 23:31:58 +00:00
ok300
de4285bd9c Simplify MultiMintWallet interface (#664) 2025-03-26 15:55:57 +00:00
codingpeanut157
47903c3bfd split MintDatabase into separate narrower scoped traits
- MintKeysDatabase
- MintQuotesDatabase
- MintProofsDatabase
- MintSignaturesDatabase

This commit splits the MintDatabase trait with 30+ methods into a series
of smaller traits, each dedicate to a specific subsystem of the mint
service.
2025-03-26 16:53:07 +01:00
thesimplekid
7b4951041e Rust docs (#681) 2025-03-25 23:27:38 +00:00
thesimplekid
1e20e8fc2b Merge pull request #682 from thesimplekid/cdk_common_wallet
refactor: cashu wallet moved to cdk-common
2025-03-25 13:39:30 +00:00
thesimplekid
d1c9dbae28 refactor: cashu wallet moved to cdk-common 2025-03-25 12:55:05 +00:00
thesimplekid
e86531957f Merge pull request #680 from thesimplekid/prepare_v0.8.1
chore: prepare v0.8.1
2025-03-25 10:15:28 +00:00
thesimplekid
f6c11173f9 chore: prepare v0.8.1 2025-03-25 09:28:57 +00:00
thesimplekid
ef2b07d1e2 Merge pull request #677 from thesimplekid/cdk-redb-cli
feat: Add optional redb feature flag for database support
2025-03-25 09:21:23 +00:00
thesimplekid
29452debe4 Merge pull request #679 from thesimplekid/docker_publish_ci
fix: remove arm for docker ci
2025-03-25 09:19:57 +00:00
thesimplekid
1634dd6552 fix: remove arm for docker ci 2025-03-25 09:19:30 +00:00
thesimplekid
0454f6299e Merge pull request #678 from benthecarman/fix-paths
fix: Fix MintUrls with a path
2025-03-25 09:08:47 +00:00
benthecarman
b8fbd83772 fix: Fix MintUrls with a path 2025-03-25 00:49:52 -05:00
thesimplekid
4224ebdf19 Merge pull request #676 from thesimplekid/proto_exp
Proto exp
2025-03-24 23:22:43 +00:00
thesimplekid (aider)
7a9faec984 feat: Add optional redb feature flag for database support 2025-03-24 22:31:14 +00:00
thesimplekid
9b87a65940 docs: changelog 2025-03-24 22:21:42 +00:00
thesimplekid
e260a12e4c fix: exp for mint-rpc 2025-03-24 22:19:45 +00:00
thesimplekid
ad14f64f36 Merge pull request #671 from optout21/melt-example
Add example program for melt operation
2025-03-24 21:00:38 +00:00
thesimplekid
ff654ab4b1 Merge pull request #673 from davidcaseria/export-mint-keyset-info
Export MintKeySetInfo
2025-03-24 20:59:42 +00:00
thesimplekid
abbe1682e4 docs: changelog 2025-03-24 19:41:22 +00:00
David Caseria
cd3a54e03b Export MintKeySetInfo 2025-03-24 14:49:11 -04:00
thesimplekid
c63fc02a5a Prepare v0.8.0 (#672)
* chore: Bump cdk dependency to v0.8.0

* chore: add docker publish to ci

* chore: add doc test build to ci
2025-03-24 18:40:08 +00:00
optout
d5104a94eb sample: Add example program for melt 2025-03-24 14:52:07 +01:00
thesimplekid
b3ae76d6c7 Fix dleq logging (#670)
* fix: dleq logging

* feat: log wallet auth for request
2025-03-24 12:50:54 +00:00
thesimplekid
be93ff2384 Clear and Blind Auth (#510)
* feat: auth

* chore: corret error codes

* chore: corret error codes

* fix: feature auth in cdk-axum

* refactor: auth logging

* feat: include dleq in auth proof

* feat: mint max auth proofs

* chore: clippy
2025-03-24 11:13:22 +00:00
thesimplekid
cd71cd47d9 Merge pull request #669 from ok300/ok300-simplify-fee-reserve
Simplify fee calculation
2025-03-24 10:13:14 +00:00
ok300
13475be580 Simplify fee calculation 2025-03-24 09:36:12 +01:00
thesimplekid
27636c86b7 chore: zip version (#668)
* chore: zip version
2025-03-23 21:18:02 +00:00
thesimplekid
e3570c3e98 Wallet dleq (#667)
* feat: Add DLEQ proofs to sqlite db
2025-03-23 17:32:29 +00:00
thesimplekid
5ba2699eb7 Merge pull request #665 from thesimplekid/mint_mod_types
refactor: move Mint and Melt quote to cdk common
2025-03-22 17:05:05 +00:00
thesimplekid
c48b5202f0 refactor: move Mint and Melt quote to cdk common 2025-03-22 17:04:46 +00:00
thesimplekid
bcc9871656 Merge pull request #663 from davidcaseria/protoc-fix
Fix protoc build error
2025-03-21 00:20:33 +00:00
David Caseria
24a9446581 Fix protoc build error 2025-03-20 14:59:14 -04:00
thesimplekid
fe06b93db4 docs: changelog 2025-03-20 11:49:55 +00:00
David Caseria
db1db86509 Prepared Send (#596)
Co-authored-by: thesimplekid <tsk@thesimplekid.com>
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
2025-03-20 11:44:44 +00:00
thesimplekid
c4488ce436 Merge pull request #662 from ok300/ok300-fix-sk-serde
Ser/Deserialize `SecretKey` either as bytes or string
2025-03-20 09:47:42 +00:00
ok300
558024d7fe Ser/Deserialize SecretKey either as bytes or string 2025-03-19 12:34:23 +01:00
thesimplekid
1cfb51a4c3 Merge pull request #659 from thesimplekid/half_msrv
chore: msrv of half
2025-03-14 12:11:38 +00:00
thesimplekid
619a89060c chore: msrv of half 2025-03-14 11:15:51 +00:00
thesimplekid
4c447cf046 Merge pull request #656 from thesimplekid/payment_request_builder
feat: payments request builder
2025-03-13 16:00:10 +00:00
thesimplekid
0155962d11 Update crates/cashu/src/nuts/nut18.rs
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
2025-03-13 14:46:22 +00:00
thesimplekid
be1e048f2c Update crates/cashu/src/nuts/nut18.rs
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
2025-03-13 14:46:15 +00:00
thesimplekid
eb5899843a feat: export transport type 2025-03-13 14:14:56 +00:00
thesimplekid (aider)
32ded596cd feat: payments request builder 2025-03-13 14:09:14 +00:00
thesimplekid
60367cdd65 Merge pull request #655 from thesimplekid/fix_output_verification
fix: verification of melt quote with empty outputs
2025-03-13 10:45:23 +00:00