Commit Graph

296 Commits

Author SHA1 Message Date
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
thesimplekid
a891613bb3 feat: nut09 structs 2024-03-22 16:17:57 +00:00
thesimplekid
7076c4db5f feat(nut07): check state on y 2024-03-22 15:01:48 +00:00
thesimplekid
4cab82d15a chore: update readme 2024-03-20 23:29:06 +00:00
thesimplekid
69a0792e01 feat(nut04/nut05): mint and melt settings as objects 2024-03-20 23:16:09 +00:00
thesimplekid
97cf67039b refactor: remove proof in nut11
Duplicating proofs across stucks leads to unneeded duplication.
Adding the feilds in nut00 with the feilds behind features reduces this.
2024-03-03 22:22:18 +00:00
thesimplekid
3930712b4d refactor: use blindedmessage in nut00 2024-03-03 22:11:12 +00:00
thesimplekid
6afb873d05 chore: remove unneeded verify 2024-03-03 20:48:52 +00:00
thesimplekid
1bc9ad3528 feat: verify p2pk on blinded message 2024-03-03 18:56:12 +00:00
thesimplekid
ed1f034a9a chore: remove print 2024-03-03 15:15:41 +00:00
thesimplekid
1161b3dac1 chore: nut11 tests 2024-03-03 15:15:41 +00:00
thesimplekid
a8ea0d9bdc refactor: secret into bytes 2024-03-03 15:15:41 +00:00
thesimplekid
ca7a5f1d7d refactor: is_p2pk 2024-03-03 15:15:41 +00:00
thesimplekid
e6802a1357 chore: clippy 2024-03-03 15:15:41 +00:00
thesimplekid
2d3fdaec75 refactor: remove unwraps 2024-03-03 15:15:41 +00:00
thesimplekid
12d77fb0af chore: remove unused functions 2024-03-03 15:15:41 +00:00