Commit Graph

1282 Commits

Author SHA1 Message Date
parazyd
21999eea4b token: Move JSON files into contrib directory. 2021-12-19 16:45:03 +01:00
ghassmo
c803cb6d8d darkpulse: cleanup & organize modules structure 2021-12-18 20:31:16 +04:00
ghassmo
174256b80c integrate darkpulse backend code 2021-12-18 20:09:17 +04:00
lunar-mining
2eaed7e922 made binaries more uniform and fixed typos 2021-12-17 09:26:35 +01:00
lunar-mining
4133b5e02f moved event notifications to log::trace 2021-12-16 10:44:14 +01:00
lunar-mining
618ad12c7e added -t, --trace option to binaries 2021-12-14 22:34:43 +01:00
lunar-mining
973dd67bd0 moved some debug! statements to info! 2021-12-14 20:41:51 +01:00
parazyd
b5ce29e4dd wallet: Fix tests. 2021-12-11 16:06:37 +01:00
parazyd
f019220bcf wallet: Create parent path to database if necessary. 2021-12-11 14:46:52 +01:00
parazyd
dc397a1f91 circuit: Minor cleanup of contracts. 2021-12-04 00:14:52 +01:00
parazyd
9e72280ea8 client: Fix update_state. 2021-12-03 10:20:54 +01:00
parazyd
6cbad936f7 client: Add debug message before applying state.
Currently the program is either not entering this function for some
weird reason, or there's a silent failure inside the function which
is not coming up. Needs investigation.
2021-12-03 02:00:17 +01:00
parazyd
0ea17724f8 YOLO
This is not well thought out, but since we're using mul_short in our
circuit for the token commitment, we should make sure that the token ID
fits in an unsigned 64bit integer.
2021-12-03 01:48:32 +01:00
parazyd
5aef00247e Add debug derives and more serialization test units. 2021-12-03 01:34:24 +01:00
parazyd
04458bcb87 circuit: Rename asset to token. 2021-12-02 22:25:48 +01:00
parazyd
e87ef1443f tx: Add debug statements to verify().
This is helpful because there's a silent failure when watching the
cashier log.
2021-12-02 22:10:18 +01:00
parazyd
a47505b427 Clean up some clippy lints. 2021-12-02 21:38:27 +01:00
parazyd
7fbd70096f Fix and improve unit tests. 2021-12-02 21:24:16 +01:00
parazyd
1227018081 Remove traces of pasta_curves crate from files where they shouldn't be. 2021-12-02 21:24:16 +01:00
parazyd
e155a8583e wallet: Support arbitrary strings for database path.
This enforces handling of the path on the client side, but also
allows us easier handling of in-memory databases.
2021-12-02 21:24:16 +01:00
parazyd
2894c9fc7d Minor cleanup. 2021-12-02 21:24:16 +01:00
parazyd
dce2a3294c bin: Rename vm2 to vm. 2021-12-02 21:24:16 +01:00
parazyd
3a80143540 Create zk proving keys on initial startup and pass them around. 2021-12-02 21:24:16 +01:00
parazyd
ff01e7b685 Use the new keypair module throughout the codebase. 2021-12-02 21:24:15 +01:00
parazyd
d79a18e37c cli: Remove mint/spend params config entries. 2021-12-02 21:24:15 +01:00
parazyd
0b7bd857de client: Fix automatic keypair generation. 2021-12-02 13:45:56 +01:00
parazyd
8e92571468 darkfid: Use new async wallet API. 2021-12-01 21:33:16 +01:00
parazyd
f1eaa08772 cashierd: Use new async wallet API. 2021-12-01 21:33:07 +01:00
parazyd
4d39e92524 wallet: Port to sqlx.
Note there is still some connection bug, where the sqlcipher pragma
doesn't seem to work after a subsequent connection.
We shall investigate and solve this.
2021-12-01 21:32:01 +01:00
parazyd
f6e8091585 bin/darkfid: WIP integration. 2021-11-30 19:28:10 +01:00
parazyd
75a452037f util/token_list: Restore version from 1ea13805e6 2021-11-30 19:28:10 +01:00
parazyd
cde8b6d7e2 Make cashierd compile. 2021-11-30 17:36:10 +01:00
parazyd
113a257227 bin: WIP changes for Halo2. 2021-11-29 14:43:00 +01:00
parazyd
6264152edb client: WIP integration. 2021-11-29 14:42:29 +01:00
parazyd
9d67289bd2 crypto: Add structs to hold proof verification and proving keys. 2021-11-29 14:18:30 +01:00
parazyd
726fc5a487 service/eth: Restore missing functions after halo2-integration merge. 2021-11-29 14:17:50 +01:00
parazyd
5862b63605 wallet/cashierdb: Use a mutex for the SQL connection and make functions async. 2021-11-29 14:17:27 +01:00
parazyd
2f2d40e03a vm: Use new way of hashing poseidon messages. 2021-11-29 14:17:06 +01:00
parazyd
2d59247f6f circuit: Clean up mint and spend contracts. 2021-11-29 14:16:37 +01:00
parazyd
bbe9c8e74d bin: Remove mint.rs and burn.rs.
We will make test units for the circuit module.
2021-11-29 14:16:06 +01:00
parazyd
80709c6813 crypto: Remove duplicated and old merkle tree code. 2021-11-28 10:19:05 +01:00
parazyd
81f95745f3 Apply some linting cleanups. 2021-11-28 10:13:29 +01:00
parazyd
c94bbabbd7 error: Print inner error for PlonkError. 2021-11-28 09:49:48 +01:00
parazyd
b308e85e38 tx2: Clean up. 2021-11-28 09:34:08 +01:00
parazyd
219c299360 crypto: Introduce Keypair struct. 2021-11-28 08:56:26 +01:00
parazyd
a39a90bab6 Move vm2.rs to vm.rs. 2021-11-27 18:13:09 +01:00
parazyd
8c93da2b90 Remove bls_extensions.rs 2021-11-27 18:11:38 +01:00
parazyd
6582d1eb1f cargo fmt. 2021-11-27 18:01:29 +01:00
parazyd
2e33d98948 Reintroduce PR #15 2021-11-27 17:54:16 +01:00
parazyd
7276498e64 cargo fmt with new settings. 2021-11-27 17:02:29 +01:00