Commit Graph

184 Commits

Author SHA1 Message Date
thesimplekid
5484e7c33a Merge pull request #690 from thesimplekid/request_without_dleq
Request without dleq
2025-03-27 08:45:02 +00:00
thesimplekid
7b4951041e Rust docs (#681) 2025-03-25 23:27:38 +00:00
thesimplekid
d1c9dbae28 refactor: cashu wallet moved to cdk-common 2025-03-25 12:55:05 +00:00
benthecarman
b8fbd83772 fix: Fix MintUrls with a path 2025-03-25 00:49:52 -05: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
c48b5202f0 refactor: move Mint and Melt quote to cdk common 2025-03-22 17:04:46 +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
ok300
558024d7fe Ser/Deserialize SecretKey either as bytes or string 2025-03-19 12:34:23 +01: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
162507c492 feat: payment processor 2025-03-10 14:44:57 +00:00
thesimplekid
22beade553 Amount and unit nut04/05 (#635)
* feat: return amount and unit in mint response


Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2025-03-08 22:41:21 +00:00
NodlAndHodl
fcf2e9d603 feat: adding tos to mint (#604)
* feat: adding tos(terms of service) to mint and update cdk-sqlite migration
2025-03-07 20:29:10 +00:00
ok300
813794353a Add ensure_cdk macro 2025-03-05 17:39:08 +01:00
thesimplekid
e84d6ea7ab chore: Update rust-version (MSRV) to 1.75.0 (#623) 2025-03-05 10:32:41 +00:00
C
d5df413d6b Drop AmountStr (#612)
* Drop AmountStr

Fixes #609

Instead write a customer serializer for Keys to serialize amounts as strings

* Add a custom error for invalid amounts
2025-02-22 17:46:02 +00:00
codingpeanut157
606385f44a fix openApi attributes to keyset id to present it as a string
The attribute `schema(as = String)` does not result in the expected
behaviour.
It does not convert Id to being represented as a simple string, but
rather simply rename the type `Id` to `String`.

This commit removes the attribute that implements utoipa::ToSchema trait
for type `Id` and adds attribute to all the types that have a keyset id
    as inner type to represent it as string.
2025-02-20 16:27:43 +01:00
thesimplekid
3a4c363309 feat: debug print to hide seed and print version 2025-02-09 11:16:33 +00:00
thesimplekid
47ee54d7f5 feat: mint management rpc server and client cli 2025-02-06 12:05:13 +00:00
thesimplekid
0674144001 refactor: remove mint url from config 2025-01-29 20:38:53 +00:00
ok300
fe223c4ce6 Remove dependency on rand 2025-01-24 16:46:59 +01:00
thesimplekid
b3a1c9fa36 fix: multi mint check 2025-01-24 11:15:40 +00:00
thesimplekid
b86d42b6a5 fix: extra mint/melt info limits 2025-01-16 11:22:37 +00:00
hidewrong
665c927c68 chore: fix some comments
Signed-off-by: hidewrong <hidewrong@outlook.com>
2025-01-14 20:03:39 +08: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
5cd03b0027 refactor: consolidate to one CDK crate
Having the two crates adds complexity without
benefit since features can be used instead
2024-04-10 22:48:53 +01:00
thesimplekid
ecc70e54f3 refactor: remove unused features 2024-04-10 21:21:24 +01:00
thesimplekid
e5a531dca1 refactor: reduce number of features
Features for NUTs without extra deps expand the
feature matrix without much benefit.
2024-04-10 21:09:56 +01:00
thesimplekid
973dc89b01 refactor: code style in localstore 2024-04-10 20:49:32 +01:00
Yuki Kishimoto
3831a4f3bb cashu: adj. dependencies
* Remove `k256`, `bip32`, `hex`, `log`, `rand` and `itertools` deps
* Add `once_cell` and `instant` deps
* Downgrade `bitcoin` to `v0.30` and `base64` to `v0.21`
* Replace `utils` module with `util`
* Remove `utils` from `cashu-sdk`
* Some cleanups

Closes https://github.com/thesimplekid/cashu-crab/issues/35

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-10 17:55:40 +02:00
thesimplekid
ed117ef3a2 feat(wallet): verify token dleq and p2pk conditions 2024-04-03 00:57:55 +01:00
thesimplekid
34908cfd88 refactor: remove duplicate NUT08 struct 2024-03-31 23:24:33 +01:00
thesimplekid
57f4090be2 refactor: rename BlindedSignature to BlindSignature 2024-03-31 23:12:51 +01:00
thesimplekid
35ce004230 refactor: remove unused 2024-03-31 17:15:33 +01:00
thesimplekid
21926da14a feat(NUT12): rename BlindSignatureDleq 2024-03-27 21:08:54 +00:00
thesimplekid
5461eb0dad feat(NUT12): BlindedSignature and Proof DLEQ 2024-03-27 20:34:22 +00:00
thesimplekid
e761c41960 feat(NUT12): mint include dleq proof 2024-03-25 22:06:08 +00:00
thesimplekid
96a151bfaa feat(nut12): verify receive proofs 2024-03-25 14:42:02 +00:00
thesimplekid
a6e77c62af feat(NUT12): verify DLEQ on blinded signatures 2024-03-24 22:46:40 +00:00
thesimplekid
a3faf2fb2e feat(NUT09-13): Add support for NUT09 and NUT13 2024-03-23 21:14:18 +00:00
thesimplekid
65b0f66729 feat(mint): restore function 2024-03-22 16:38:45 +00:00
thesimplekid
9c0e058541 feat(wallet): restore from all keysets 2024-03-22 16:36:34 +00:00
thesimplekid
c4389079f3 feat: nut13 restore for active keyset 2024-03-22 16:30:21 +00:00
thesimplekid
4d4467df58 feat(wallet): premint secrets from seed 2024-03-22 16:17:57 +00:00
thesimplekid
6632c08b01 chore: remove unwraps from nut13 2024-03-22 16:17:57 +00:00
thesimplekid
a0a3a80377 feat: r and secret from seed 2024-03-22 16:17:57 +00:00