thesimplekid
f835ca665d
refactor: add mint quote in sdk
2023-12-25 21:27:55 +00:00
thesimplekid
775117cf78
refactor: add hash_to_curve test
2023-12-25 15:40:06 +00:00
thesimplekid
995a09f59d
refactor: add token prefix tests
2023-12-25 15:36:00 +00:00
thesimplekid
ea25b35a21
refactor: update tests to v1
2023-12-23 20:48:24 +00:00
thesimplekid
69f03e1ddc
chore: secret unused for now
2023-12-22 18:24:52 +00:00
thesimplekid
8b16996cb9
refactor: join_url accepts slice
2023-12-22 18:07:18 +00:00
thesimplekid
e557d3ec6d
refactor: remove nut09 feature
2023-12-22 17:25:34 +00:00
thesimplekid
85df35458a
refactor: cashu-ffi some interfaces to v1
2023-12-21 14:05:40 +00:00
thesimplekid
071dadb391
refactor: wallet nut07 features for mint info
2023-12-19 21:04:07 +00:00
thesimplekid
93c2d478f8
refactor: rename id to keyset_id where relevant on structs
2023-12-18 23:49:02 +00:00
thesimplekid
69bdb18dda
refactor: skip serialization of feilds other then secret
...
This avoids wallet fingerprinting by only sending the secret when
checking if a proof is spent as recommnded in the nut.
2023-12-18 23:21:58 +00:00
thesimplekid
299d4c9c05
refactor: rename proof to payment_preimage
2023-12-18 22:55:26 +00:00
thesimplekid
5c5d0bf888
refactor: remove bitcoin amount from Amount
2023-12-17 23:17:47 +00:00
thesimplekid
e76a8b9130
impove: add payment method display
2023-12-17 22:59:49 +00:00
thesimplekid
5d8f35c053
refactor: add PaymentType enum
2023-12-17 22:45:38 +00:00
thesimplekid
bdb87dd4cd
fix: add nut info struct
2023-12-17 22:26:38 +00:00
thesimplekid
5493745675
fix: mint info v1 enpoint
2023-12-17 17:31:02 +00:00
thesimplekid
2a93c4feba
refactor: MintInfo v1
2023-12-16 21:49:24 +00:00
thesimplekid
5248c764b2
refactor: rename split to swap
2023-12-14 20:17:17 +00:00
thesimplekid
66068e6a3d
refactor: remove RequestMint
2023-12-14 20:00:42 +00:00
thesimplekid
4191ea68d2
refactor: wallet for nut04 v1
2023-12-14 19:33:21 +00:00
thesimplekid
681828b947
refactor: cashu: nut-04 Mint V1
2023-12-13 23:24:24 +00:00
thesimplekid
bfbe192b37
refactor: remove token B
2023-12-13 23:04:48 +00:00
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
17b6c17053
chore: clippy
2023-12-11 21:03:42 +00:00
thesimplekid
c81028da81
fix: into mint proof for check_spendable
2023-12-11 20:58:29 +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
4e0e91cf7f
improve: handle not enough change outputs provided
2023-11-28 22:14:01 +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
e1264d3ee0
fix: client join urls without trailing '/'
2023-11-15 20:56:35 +00:00