Commit Graph

66 Commits

Author SHA1 Message Date
thesimplekid
c706e367e9 refactor: v1 MeltRequest
TODO: ffi bindings
2023-12-11 23:09:10 +00:00
thesimplekid
35db3fb147 refactor: add cashuB token 2023-12-11 23:06:53 +00:00
thesimplekid
e93fb506af improve: impl 'to_string()' on 'Token' 2023-12-11 23:06:51 +00:00
thesimplekid
ce0ff46885 refactor: rename 'SplitPayload' to 'PreSplit' 2023-12-11 23:05:51 +00:00
thesimplekid
210d6159c3 refactor: remove nut06 2023-12-11 23:02:08 +00:00
thesimplekid
a69490feb2 refactor: rename "KeysetInfo" to "MintKeySetInfo" 2023-12-11 23:01:56 +00:00
thesimplekid
b92be032ee refactor: rename 'BlindedMessages' to 'PreMintSecrets'
In the nuts 'BlindedMessages' is a Vec<BlindedMessage>
using it another way is confusing this avoids that.
2023-12-11 23:00:29 +00:00
thesimplekid
78f35eda8e refactor: Allow multiple active keysets
Only one active keyset per unit
Rotate keyset was taken out to be put back in with mnemomic
2023-12-11 22:43:23 +00:00
thesimplekid
08114cb0ba refactor: secret as 32 byte hex 2023-12-11 22:43:23 +00:00
thesimplekid
2c63263dc2 refactor: rename 'symbol' to 'unit' 2023-12-11 22:43:23 +00:00
thesimplekid
834834fd46 refactor: add unit to token 2023-12-11 22:43:23 +00:00
thesimplekid
ff0fead2c0 refactor: Keyset_id in proof is required 2023-12-11 22:43:23 +00:00
thesimplekid
a8fb7f1397 fix: 'SplitPayload' only for wallet feat 2023-12-11 22:43:23 +00:00
thesimplekid
417e3037ee refactor: move nut06 to nut03
rename 'proofs' to 'to inputs'
2023-12-11 22:43:23 +00:00
thesimplekid
989035e12e refactor: add keyset_id to blinded_message
stop mint from signing if keyset in
blinded_message is not the active keyset
2023-12-11 22:43:21 +00:00
thesimplekid
614ae73e70 refactor: add symbol to keyset_info 2023-12-11 22:38:02 +00:00
thesimplekid
a7860903b9 update: keyset id 2023-12-11 22:36:35 +00:00
thesimplekid
6400624e1e fix: send: split amount
The create split function used in the send of cashu-sdk
was not ensureing that the correct combination of token amounts
is avaliable for the send. Adding an optinal split amount enables this.

TODO: the proofs in split are not sorted in accending order to avoid fingerprinting
2023-12-11 20:45:36 +00:00
thesimplekid
fa1d54083e improve: use 'Proof' type for wallet check spendable not 'MintProof' 2023-12-03 10:26:04 +00:00
thesimplekid
dd3e96243a fix: send in wallet proof totals 2023-11-29 07:35:25 +00:00
thesimplekid
a1eae5f76c improve: add mod in 'dhke' for 'mint' and 'wallet' 2023-11-17 07:53:06 +00:00
thesimplekid
4118ee0e2d imporve: use types exported in nuts mod 2023-11-16 21:53:53 +00:00
thesimplekid
3f6e7bfdd5 improve: export nut structs, add nut08 2023-11-16 20:37:59 +00:00
thesimplekid
af23f89d96 fix: decode tokens when not padded 2023-11-14 23:28:40 +00:00
thesimplekid
38318bbc78 improve: add 'Client' trait, minreq async client 2023-11-11 10:01:54 +00:00
thesimplekid
99dd07ed0b improve: 'cashu' use thiserror for 'NUT02', 'SECRET' and 'URL' 2023-11-10 18:53:22 +00:00
thesimplekid
f85df7316f improve: use thiserror 2023-11-10 18:39:11 +00:00
ngutech21
5ec27c683c fix: typo 2023-11-09 08:20:46 +01:00
ngutech21
75902dbba3 chore: consolidate split-amount 2023-11-07 14:37:26 +01:00
thesimplekid
f4d0160b5b improve: use features for optional nuts 2023-11-04 09:20:33 +00:00
thesimplekid
bf5ea01c1f improve: nix flakebox fmt 2023-10-22 18:36:52 +01:00
thesimplekid
dafa0079e8 deps: update invoice 2023-10-15 11:40:45 +01:00
thesimplekid
bcc344c194 improve: Use keyset info 2023-09-30 20:08:32 +01:00
thesimplekid
e830cbf0b7 bindings/cashu-js nut00 and nu01 2023-09-30 20:08:31 +01:00
thesimplekid
ba2e4cf1f3 log amount miss match for verify melt 2023-09-29 07:32:36 +01:00
Daniel Uhlík
4eaa9a6731 fix reading invoice value 2023-09-28 23:27:17 +02:00
thesimplekid
135a1cf094 cashu-sdk: improve: mint active_keyset_puvkeys returns response type 2023-09-27 22:30:11 +01:00
thesimplekid
b1a12525d2 improve: add to and from str for Secret 2023-09-21 19:28:56 +01:00
thesimplekid
502a3962e3 improve: use unchecked url in client 2023-09-19 20:50:54 +01:00
thesimplekid
a9aa71fa25 strip trailing / from token min url 2023-09-17 20:44:30 +01:00
thesimplekid
1f77966384 bump MSRV to 1.70.0
It would be better to have a lower MSRV.
However I would like to whole workspace to have the same version,
and uniffi requires at least 1.70.0
2023-09-17 08:06:12 +01:00
thesimplekid
0013e040d6 MSRV 2023-09-16 09:56:17 +01:00
thesimplekid
c3437beb6f ci: remove deprecated attribute
versioning is not constant at the moment
so the attribute just causes ci errors
Will add back once more stable
2023-09-11 20:45:39 +01:00
thesimplekid
c21f059101 chore: clippy 2023-09-10 21:40:28 +01:00
thesimplekid
c6f38f3cc8 cashu-sdk chore: clippy 2023-09-10 21:05:47 +01:00
thesimplekid
57b6607f9a chore: clippy 2023-09-10 20:59:57 +01:00
thesimplekid
6f84f5620d chore: update deps 2023-09-10 18:45:43 +01:00
thesimplekid
d36262233f cashu add UncheckedUrl type
This is needed to track if the token mint url
has a traling "/". This is needed to round trip
serialize a token.

Though it would not actually effect being able
to redeam the token or now.
2023-09-10 11:03:55 +01:00
thesimplekid
e47762029e cashu improve: amount type in Keys map 2023-09-10 09:47:29 +01:00
thesimplekid
6cde1e7b22 cashu-sdk improve: use Id type 2023-09-09 11:49:55 +01:00