Commit Graph

42 Commits

Author SHA1 Message Date
Thomas Eizinger
60de1846c9
Make adaptor signature protocol pass 2021-05-20 16:39:09 +10:00
Thomas Eizinger
0c0acaad9e
Restructure workspace so monero-adaptor only contains the protocol 2021-05-19 17:14:54 +10:00
Thomas Eizinger
ec1916161e
Update to latest monero-rs 2021-05-19 14:36:59 +10:00
Thomas Eizinger
25c4a5a9b9
Sketch initial type-level state machine for signing Monero transactions 2021-05-17 19:08:26 +10:00
Thomas Eizinger
1af0116cac
Appease clippy 2021-05-17 17:20:33 +10:00
Thomas Eizinger
e35e5c7939
Update to latest monero-rs version 2021-05-17 17:18:02 +10:00
Thomas Eizinger
19efd376da
Introduce ConfidentialTransactionBuilder 2021-05-14 18:14:39 +10:00
Thomas Eizinger
3f0f97b9ba
Use correct amount in EcdhInfo 2021-05-14 14:54:10 +10:00
Thomas Eizinger
523ee6088c
Extract blinding factor and key recovery into functions on Transaction 2021-05-14 13:00:25 +10:00
Thomas Eizinger
91f54bf6b5
Use upstreamed functionality for clsag and signature hash 2021-05-14 12:59:17 +10:00
Thomas Eizinger
04e7d1c111
Use recover_key function to compute actual signing key 2021-05-14 10:57:11 +10:00
Thomas Eizinger
507e2670ac
Change sign API back to taking signing key separately 2021-05-13 17:32:54 +10:00
Thomas Eizinger
de1830f825
Add TODO to be resolved 2021-05-13 14:21:16 +10:00
Thomas Eizinger
558cc3492a
Use key-image variable 2021-05-13 13:53:20 +10:00
Thomas Eizinger
6b026efc7a
Compute actual_signing_key as early as possible 2021-05-13 13:49:39 +10:00
Thomas Eizinger
0a04b9a55c
Fix unit tests to not pass zero z 2021-05-13 13:12:57 +10:00
Lucas Soriano del Pino
83042c4148
OMG Monero transactions!!!!!!!! 2021-05-13 12:35:34 +10:00
Lucas Soriano del Pino
56128bb3a8
Some fixes
- Use correct key image for both signing and constructing transaction.
- Sort ring and commitment ring according to key offset order.
- Given the new order of items in the ring, allow asigning index
  values different to 0. This breaks signature verification, both
  locally and against Monero!
2021-05-13 11:34:58 +10:00
Thomas Eizinger
2c6e917554
Compute message to be signed differently 2021-05-12 20:47:57 +10:00
Thomas Eizinger
370718ab66
Put correct key-image into transaction prefix 2021-05-12 20:34:13 +10:00
Thomas Eizinger
58074fc083
ONLY PARTIALLY WORKING: Allow signing algorithm to be given signing key index
At the moment this works only if the index is 0.
2021-05-12 19:01:30 +10:00
Thomas Eizinger
16d7094df0
Fix signature creation to output correct h_0 and s_0 2021-05-12 00:42:30 +10:00
Thomas Eizinger
e5b59ee67e
Make it typesafe to hash only slices of 32 bytes 2021-05-11 21:21:07 +10:00
Lucas Soriano del Pino
32cb801fc7
Add 0 bytes to end of domain tags (and other debugging) 2021-05-11 21:14:13 +10:00
Thomas Eizinger
7f2bc9d0bf
Use clsag module in integration test 2021-05-11 17:47:59 +10:00
Thomas Eizinger
ec3c358795
Extract clsag module 2021-05-11 11:51:29 +10:00
Thomas Eizinger
cfb05994a6
Remove warning, fmt and make things compile 2021-05-11 11:15:27 +10:00
Thomas Eizinger
345154ab3e
Multiply BF by 8 because 2021-05-11 11:00:15 +10:00
Lucas Soriano del Pino
b7fa6edd10
We're almost there (I think) 2021-05-10 19:30:47 +10:00
Lucas Soriano del Pino
05c1b63aa2
[WIP] Conform to Monero CLSAG 2021-05-10 17:25:58 +10:00
Lucas Soriano del Pino
64cd618aea
[WIP] Make test self-contained 2021-05-10 13:21:40 +10:00
Thomas Eizinger
22ff99b65f
Compute s_prime_a properly and make rng configurable 2021-05-07 17:48:07 +10:00
Thomas Eizinger
d9e30b903e
Must have two outputs and upper bound was too low 2021-05-07 15:25:38 +10:00
Thomas Eizinger
ce3134c86a
More debugging 2021-05-07 14:53:32 +10:00
Thomas Eizinger
2b581d0122
Debugging ... 2021-05-07 12:12:24 +10:00
Thomas Eizinger
a04d6efb39
Choose correct lock output automatically 2021-05-06 17:54:50 +10:00
Lucas Soriano del Pino
134287d195
[WIP] More done 2021-05-06 17:25:53 +10:00
Lucas Soriano del Pino
64a0bd7f8a
[WIP] Almost done 2021-05-06 13:39:05 +10:00
Thomas Eizinger
be9c2c7d6b
Fill in some TODOs 2021-05-04 17:58:54 +10:00
Lucas Soriano del Pino
21f31ccb8d
[WIP] More transaction stuff 2021-05-04 16:59:44 +10:00
Thomas Eizinger
47a63f3467
WIP SIGN STUFF 2021-05-04 13:37:07 +10:00
Thomas Eizinger
f3f1d96431
Add test for monero ring signature adapter 2021-05-04 11:46:58 +10:00