Commit Graph

934 Commits

Author SHA1 Message Date
thesimplekid
de4a2dca1a Merge pull request #535 from hidewrong/main
chore: fix some comments
2025-01-14 12:10:03 +00:00
hidewrong
665c927c68 chore: fix some comments
Signed-off-by: hidewrong <hidewrong@outlook.com>
2025-01-14 20:03:39 +08:00
thesimplekid
0840dfea1a Merge pull request #531 from thesimplekid/itest_mint_builder
refactor: mint builder in itest
2025-01-13 20:22:51 +00:00
thesimplekid
1f45be28a3 refactor: mint builder in itest 2025-01-13 20:05:17 +00:00
C
8fe0982c6d Introduce cashu to host the shared types, traits and other common code (#519)
---------

Co-authored-by: thesimplekid <tsk@thesimplekid.com>
2025-01-12 12:50:05 +00:00
thesimplekid
8ac766dd62 chore: update readme for mint sig 2025-01-10 17:14:01 +00:00
thesimplekid
b4c11c6345 chore: RELEASE mintd v0.6.1 2025-01-10 16:44:43 +00:00
thesimplekid
1ec92e0109 chore: clippy 2025-01-10 16:41:36 +00:00
thesimplekid
e500a7a4a6 feat: work_dir from env 2025-01-10 16:24:44 +00:00
thesimplekid
cd7769025b Merge pull request #525 from thesimplekid/update_stable
chore: update stable rust
2025-01-06 16:15:23 +00:00
thesimplekid
d7e84aea9a chore: update stable rust 2025-01-06 14:09:44 +00:00
thesimplekid
eb8719d23c fix: mpp melt quote msats to pay (#524) 2025-01-05 16:05:32 +00:00
thesimplekid
7b9b430aa1 fix: mpp melt quote msats to pay 2025-01-05 15:15:06 +00:00
thesimplekid
6a8a5a7941 fix: mpp (#523) 2025-01-05 14:42:44 +00:00
David Caseria
d6b7d49ea9 Return proofs for wallet mint function (#520)
* chore: update flake

---------

Co-authored-by: thesimplekid <tsk@thesimplekid.com>
2025-01-03 13:23:52 +00:00
thesimplekid
6575e1477a fix: examples 2024-12-27 21:45:46 -05:00
Jesus Christ
8ab08c7fce Improve wallet example with memory store
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Introduced a timeout mechanism to prevent infinite loops when checking the quote state.
- Ensured the main function returns a Result type for graceful error handling.
- Added descriptive comments to explain the functionality of each section in the code.
2024-12-27 21:19:11 -05:00
Jesus Christ
7fea2ffa92 Update proof-selection.rs
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Managed the subscription mechanism properly to avoid potential issues with concurrent message handling.
- Ensured the main function returns a Result type for graceful error handling.
- Added descriptive comments to explain the functionality of each section in the code.
2024-12-27 21:17:53 -05:00
Jesus Christ
e33def2679 Improve mint-token.rs
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Managed the subscription mechanism properly to avoid potential issues with concurrent message handling.
- Ensured the main function returns a Result type for graceful error handling.
2024-12-27 21:11:17 -05:00
Jesus Christ
a1ac6d3ce1 Improve p2pk.rs
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Managed the subscription mechanism properly to avoid potential issues with concurrent message handling.
- Ensured the main function returns a Result type for graceful error handling.
2024-12-27 21:10:44 -05:00
C
c6e27d0de9 Add ArcSwap to update Mint configuration at runtime (#503)
* Add ArcSwap to update Mint configuration at runtime

The main goal is to change settings without having multiple RwLock everywhere,
instead having ArcSwap to update the configuration without having access to a
mutable reference to the Mint.

This will allow the RPC Server, or any other medium to update the Mint without
minimum contention.

* Rename structs

* Move quote_ttl to the new config

* Fixed clippy issues
2024-12-25 09:53:58 -05:00
thesimplekid
ccb1ee77d0 Merge pull request #446 from thesimplekid/sign_mint
feat: nut-20 signature on mint witness
2024-12-23 19:00:16 -05:00
thesimplekid
90f9f668e1 chore: db msrv 2024-12-23 11:05:56 -05:00
thesimplekid
003a8f1b47 feat: signature on mint witness 2024-12-23 10:25:42 -05:00
thesimplekid
4c70dcb15a chore: update changelog 2024-12-19 13:32:13 -05:00
lollerfirst
8055c0ced1 crawB Binary Token Serialization (#507) 2024-12-19 13:27:05 -05:00
thesimplekid
0e12314643 chore: Release 0.6.0 2024-12-17 08:18:32 -05:00
C
dcca57dbd1 Introduce pluggable backend cache for the HTTP layer. (#495)
---------

Co-authored-by: thesimplekid <tsk@thesimplekid.com>
2024-12-17 07:39:03 -05:00
thesimplekid
e508639b83 chore: update suppoorted nuts 2024-12-16 09:50:48 -05:00
thesimplekid
89a25a5666 fix: remove print settings 2024-12-14 22:51:33 +00:00
thesimplekid
064c596028 Merge pull request #472 from ok300/ok300-cdk-support-compression
`mintd`: Add support for HTTP compression
2024-12-14 22:50:27 +00:00
ok300
824bce5d37 mintd: add support for HTTP compression 2024-12-14 22:37:06 +00:00
thesimplekid
ae3ad683c3 Merge pull request #501 from findingsov/patch-4
Update DEVELOPMENT.md-change discord link to Matrix link
2024-12-13 14:06:31 +00:00
findingsov
fec20b38e8 Update DEVELOPMENT.md-change discord to Matrx 2024-12-13 08:08:07 -05:00
thesimplekid
9f0df32348 chore: readme 2024-12-11 14:32:24 +00:00
thesimplekid
b9df44b10a chore: update regtest-rs 2024-12-10 14:12:03 +00:00
thesimplekid
c9747900a3 Merge pull request #457 from thesimplekid/redundant_mpp
feat: remove redundant bool mpp flag
2024-12-09 16:32:30 +00:00
thesimplekid
2462168ec9 fix: ws wasm build 2024-12-08 16:34:54 +00:00
Cesar Rodas
760564cee0 Introduce subscription support in the Wallet crate.
The main goal is to add a subscription to CDK Mint updates into the wallet.
This feature will be particularly useful for improving the code whenever loops
hit the mint server to check status changes.

The goal is to add an easy-to-use interface that will hide the fact that we're
connecting to WebSocket and subscribing to events. This will also hide the fact
that the CDK-mint server may not support WebSocket updates.

To be fully backward compatible, the HttpClientMethods traits have a new
method, `subscribe,` which will return an object that implements
`ActiveSubscription.`

In the primary implementation, there is a `SubscriptionClient` that will
attempt to connect through WebSocket and will fall to the HTTP-status pull and
sleep approach (the current approach), but upper stream code will receive
updates as if they come from a stream of updates through WebSocket. This
`SubscriptionClient` struct will also manage reconnections to WebSockets (with
automatic resubscriptions) and all the low-level stuff, providing an
easy-to-use interface and leaving the upper-level code with a nice interface
that is hard to misuse. When `ActiveSubscription` is dropped, it will
automatically unsubscribe.

Fixed bug with Default as described in https://github.com/cashubtc/cdk/pull/473#discussion_r1871032297
2024-12-08 16:25:00 +00:00
ok300
86c4c2dfeb Add support for pure integration tests (#458)
* Embed mint_url as a field of HttpClient

* Create pure integration tests

* DirectMintConnection: convert between String and Uuid
2024-12-08 14:33:58 +00:00
thesimplekid
9cb684e5db feat: docker-compose 2024-12-06 09:59:48 +00:00
thesimplekid
0a6e306209 feat: mintd from enc vars 2024-12-05 14:13:22 +00:00
thesimplekid
0d2c903a21 chore: changlog 2024-12-05 10:12:29 +00:00
thesimplekid
a0dca228b9 nix mintd pkg (#486) 2024-12-05 10:01:32 +00:00
Darrell
d4975c7170 add docker support for cdk-mintd (#480) 2024-12-05 10:00:50 +00:00
Timothée Delabrouille
7d87c4806c feat: use Uuid as mint and melt quote ids (#469) 2024-12-05 09:58:53 +00:00
thesimplekid
5ad4328a4e chore: changelog 2024-12-04 00:09:27 +00:00
thesimplekid
57180ff3c2 feat: nut19 settings 2024-12-04 00:07:16 +00:00
thesimplekid
38b4c6de36 docs: changelog 2024-12-02 20:03:53 +00:00
thesimplekid
bc490ed208 fix(wallet): stop sqlite from overwritting keyset counter 2024-12-02 19:38:28 +00:00