thesimplekid
b9f56c61c1
Revert "cashu-sdk/mint improve: verify_melt called by proccess_melt_request"
...
This reverts commit 4a9101443f .
Verify needs to be public as clients will need to verify the request before paying
and procesing the request
2023-09-29 06:22:41 +01:00
Daniel Uhlík
4eaa9a6731
fix reading invoice value
2023-09-28 23:27:17 +02:00
thesimplekid
4a9101443f
cashu-sdk/mint improve: verify_melt called by proccess_melt_request
...
This simplfies the api as the client does not have to call verify themselfs.
Brings the api in line with `split`
2023-09-28 06:52:31 +01:00
thesimplekid
19e2f23ec2
cashu-sdk/mint fix: process_split_request add secrets to spent after they are verified
2023-09-28 06:39:22 +01:00
thesimplekid
2558ef758b
cashu-sdk/mint fix: check_spendable pending proofs check was inverted
2023-09-28 06:28:13 +01:00
thesimplekid
135a1cf094
cashu-sdk: improve: mint active_keyset_puvkeys returns response type
2023-09-27 22:30:11 +01:00
thesimplekid
2880b5ae8b
chore: clippy
2023-09-23 07:43:06 +01:00
thesimplekid
b1a12525d2
improve: add to and from str for Secret
2023-09-21 19:28:56 +01:00
thesimplekid
c5a5195afd
chore: fix clippy
2023-09-19 21:21:55 +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
544a8d1f91
ci: fix: wasm build
2023-09-12 21:42:26 +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
492535879f
cashu-sdk fix: add verification of proofs for Melt and Split
...
make verify proofs private
2023-09-10 20:45:56 +01:00
thesimplekid
06ffef6db5
cashu-sdk improve: account for fee reserve on Melt
2023-09-10 19:21:14 +01:00
thesimplekid
1af48de2a5
fix: unchecked url was not used
2023-09-10 19:20:13 +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
thesimplekid
4e3268a7c7
cashu improve: add keyset id type
2023-09-09 11:37:06 +01:00
thesimplekid
a72a1e654d
bindings/cashu-sdk improve: use secret type
2023-09-09 09:20:55 +01:00
thesimplekid
40472cecb3
cashu improve: add secret type
2023-09-09 07:53:01 +01:00
thesimplekid
4f98aa9e40
'cashu-sdk' feat: rotate keyset
2023-09-09 07:21:05 +01:00
thesimplekid
9ddd36fc19
cashu-sdk/mint: improve: check proofs are unique melt/split
2023-09-04 22:58:09 +01:00
thesimplekid
fd955f22cb
fix: public key serialization
...
This removes deserialixation from the secret key
and related types as it is not needed and it's
broken. It would be best to fix this at some point.
2023-09-03 14:14:30 +01:00
thesimplekid
08067fb793
chore: clippy
2023-09-02 12:50:59 +01:00
thesimplekid
19f6e24dfe
bindings/sdk: Add Mint
2023-09-02 12:44:04 +01:00
thesimplekid
1d7bc0cda9
wallet: check proofs status
2023-09-02 09:45:39 +01:00
thesimplekid
8cf52d0b7e
bindings/python: Add token example
...
This includes a HACK to fix `from_hex` for publickey
that I discovered while writting this example.
Will include a real fix for this in seperate commit
2023-09-01 16:12:43 +01:00
thesimplekid
0beca645b8
bindings/cashu-sdk: add ffi bindings for mint and wallet
2023-09-01 11:27:33 +01:00
thesimplekid
066ee43158
python bindings
2023-08-28 16:19:03 +01:00
thesimplekid
4a7ea24be0
check for proofs when creating token
2023-08-28 11:24:27 +01:00
Wspsxing
f1d98a5d16
expose error: Token already spent.
2023-08-21 08:02:50 +01:00
Wspsxing
bce87901ae
public client
2023-08-21 08:02:08 +01:00
thesimplekid
59250bc79e
test: add short keyset id gen test
2023-08-19 00:24:06 +01:00
thesimplekid
dc7185b3d6
ci: remove test step
...
the tests need to be rewritten and added to after refactoring
2023-08-17 15:19:09 +01:00
thesimplekid
fb285fcf47
fix: client only on when wallet feature enabled
2023-08-17 15:13:52 +01:00
thesimplekid
1aedf3f2bc
sdk: add blocking client and wallet as feature
2023-08-17 13:58:19 +01:00
thesimplekid
9ead2ea507
chore: remove unused log dep
2023-08-17 11:32:27 +01:00
thesimplekid
e4120ecabf
chore: clippy
2023-08-17 08:14:36 +01:00
thesimplekid
3aeb6b6ab4
refactor: split into cashu and cashu-sdk
2023-08-16 22:51:00 +01:00