Commit Graph

426 Commits

Author SHA1 Message Date
thesimplekid
080253aefc fix: handle keys response with old keyset ids
This adds a new deserializer that will skip invalid keyset ids.
This prevents an the response from erroring
if a mint returns old keysetids
2024-04-19 21:52:22 +01:00
thesimplekid
27e70aa921 refactor(cdk-redb): abstract error 2024-04-18 15:53:08 +01:00
thesimplekid
15a25a4f3d refactor(cdk-redb): feature gate mint and wallet 2024-04-18 15:52:39 +01:00
thesimplekid
2eca18007d refactor: mint redb database 2024-04-18 15:52:37 +01:00
thesimplekid
3ad08e8d8d chore: cdk-redb ci 2024-04-18 15:47:43 +01:00
thesimplekid
06373beff4 refactor: cdk_database 2024-04-18 15:47:40 +01:00
Yuki Kishimoto
61c80606f6 cdk: adj. code according to CODE_STYLE and remove serde_utils mod
* Remove `wallet` and `mint` features from `nuts` module
* Sort dependencies in ASC order
* Fix `check-docks.sh` script

Closes https://github.com/cashubtc/cdk/issues/88
Closes https://github.com/cashubtc/cdk/issues/87

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-18 09:31:36 +02:00
thesimplekid
c8d28dea9a chore: correct repo url 2024-04-15 16:07:51 +01:00
thesimplekid
0c953fb38a chore: replace authors in cdk 2024-04-15 15:45:40 +01:00
thesimplekid
65b8b5c1a8 chore: remove duplicate rustfmt 2024-04-15 15:37:46 +01:00
thesimplekid
5f2fd0bbc5 chore: rename for CDK 2024-04-15 15:36:15 +01:00
thesimplekid
664776f122 refactor: export http client 2024-04-13 10:56:58 +01:00
thesimplekid
9e26c48fc2 refactor: client error 2024-04-12 22:22:38 +01:00
thesimplekid
324d3c028f refactor: add doc comment 2024-04-12 22:10:43 +01:00
thesimplekid
391692e332 refactor: use reqwest client
Using reqwest reduced code duplication since it can be used for both
wasm and non wasm targets.
2024-04-12 22:00:32 +01:00
thesimplekid
ce207953a1 refactor: remove mint and wallet error mods 2024-04-12 20:47:07 +01:00
thesimplekid
27f718de08 refactor: mint and wallet errors as mod files 2024-04-12 19:29:34 +01:00
thesimplekid
ef1c2fac2a refactor: mint and wallet error use transparent 2024-04-12 18:55:21 +01:00
thesimplekid
76688c35e4 refactor: use transparent error 2024-04-12 17:19:07 +01:00
thesimplekid
370a1df96a refactor: wallet and mint use nut13 feature 2024-04-12 14:03:10 +01:00
thesimplekid
3b27eabf73 refactor: include wallet and mint in cdk 2024-04-12 13:57:58 +01:00
thesimplekid
a17eb0f67e fix: script and ci cdk 2024-04-12 12:07:26 +01:00
thesimplekid
f7b7a2a506 refactor: update CI and script for one cdk crate 2024-04-10 23:04:07 +01: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
dd5bdf3c27 refactor: rename cashu-sdk to cdk 2024-04-10 22:32:11 +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
4c2cb78327 chore: update CODE_STYLE
Co-authored-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-10 20:49:35 +01:00
thesimplekid
973dc89b01 refactor: code style in localstore 2024-04-10 20:49:32 +01:00
thesimplekid
ce0b309b66 chore: add code style and rust fmt 2024-04-10 20:43:25 +01:00
Yuki Kishimoto
205af9b107 Update .rustfmt.toml
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-10 17:55:41 +02: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
Yuki Kishimoto
02fd33225c Add misc/scripts
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-10 17:54:44 +02:00
Yuki Kishimoto
d19486325f Add .vscode and .idea to .gitignore
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-09 19:54:33 +02:00
thesimplekid
d57d69c7a7 fix(wallet): feature gate NUT13 related code 2024-04-08 23:07:11 +01:00
thesimplekid
0b1254b66e Merge pull request #72 from Kodylow/flake-updates
fix: flake fixes
2024-04-07 16:51:38 +01:00
kody.low
3cec49ce0d fix: flake 2024-04-07 08:38:25 -07:00
thesimplekid
30d53f5e29 feat: check if db upgrade needed 2024-04-07 14:39:42 +01:00
thesimplekid
e63b43f838 chore(README): fix licence link 2024-04-04 19:22:03 +01:00
thesimplekid
ed117ef3a2 feat(wallet): verify token dleq and p2pk conditions 2024-04-03 00:57:55 +01:00
thesimplekid
1c045ff62a feat(cashu_sdk): verify token dleq 2024-04-02 20:18:44 +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
b77ea560e6 refactor: getrandom as workspace dep 2024-03-31 18:58:55 +01:00
thesimplekid
91149c1ce0 refactor: getrandom js 2024-03-31 17:43:13 +01:00
thesimplekid
860f92b0b8 chore: update flake 2024-03-31 17:36:37 +01:00
thesimplekid
c704f43c56 refactor: remove left over blocking 2024-03-31 17:31:38 +01:00
thesimplekid
35ce004230 refactor: remove unused 2024-03-31 17:15:33 +01:00
thesimplekid
deb96e7d1a chore: update readme 2024-03-30 22:04:01 +00:00
thesimplekid
d82ff1105d chore: update 2024-03-30 21:49:29 +00:00