Commit Graph

261 Commits

Author SHA1 Message Date
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
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
0c953fb38a chore: replace authors in cdk 2024-04-15 15:45:40 +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
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
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
d57d69c7a7 fix(wallet): feature gate NUT13 related code 2024-04-08 23:07:11 +01:00
thesimplekid
30d53f5e29 feat: check if db upgrade needed 2024-04-07 14:39:42 +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
d82ff1105d chore: update 2024-03-30 21:49:29 +00: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
27677f881a feat(mint): store blinded messages and sigs 2024-03-22 16:38:42 +00:00
thesimplekid
9c0e058541 feat(wallet): restore from all keysets 2024-03-22 16:36:34 +00:00
thesimplekid
3dea0f7924 chore: clippy 2024-03-22 16:30:24 +00:00
thesimplekid
c4389079f3 feat: nut13 restore for active keyset 2024-03-22 16:30:21 +00:00
thesimplekid
357479827d chore: clippy 2024-03-22 16:17:57 +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