Commit Graph

7634 Commits

Author SHA1 Message Date
parazyd
02e1885d40 validator/verification: Account for ZK proof verification cost when verifying tx fee 2024-01-19 14:21:41 +01:00
parazyd
3cb838daeb validator/fees: Add gas use calculator for ZK circuits 2024-01-19 14:10:13 +01:00
aggstam
8af99afe71 drk2: initialize schemas 2024-01-19 14:40:48 +02:00
parazyd
36315f09fd validator: Add TODO note about RAM usage for circuit VKs 2024-01-19 13:03:38 +01:00
parazyd
f733f094e7 validator: Account for Schnorr signature verification for fees in txs 2024-01-19 12:59:02 +01:00
parazyd
61dee47ad1 tx: Improve log messages 2024-01-19 12:40:01 +01:00
parazyd
7b42b1c1e2 validator/verification: Fix tx fee call index 2024-01-19 11:56:06 +01:00
zero
b1da730489 dao: apply same verifiable encryption for other outputs, to the DAO change output as well. 2024-01-19 11:55:08 +01:00
parazyd
5aad1deb73 runtime/import/merkle: Account for gas costs in merkle_add() 2024-01-19 11:17:44 +01:00
zero
1061873008 spec: rename coin params to coin attrs 2024-01-19 09:29:42 +01:00
zero
75484eb7e4 spec: DAO::exec() 2024-01-19 09:18:54 +01:00
aggstam
4c8dab8204 drk: drk rewritte skeleton added 2024-01-18 22:33:40 +02:00
parazyd
a3ed654d3a runtime/import/db: Apply gas subtraction to remaining db.rs functions 2024-01-18 13:23:08 +01:00
parazyd
9fb2febfb3 runtime/import/db: Implement host gas cost for zkas_db_set()
This is unfinished, as we should properly account for the ZkBinary
rather than just charging a fixed cost for every literal/witness/opcode.
2024-01-18 12:50:30 +01:00
zero
3ac3f314ed spec: add dao::vote() 2024-01-18 11:55:09 +01:00
parazyd
c03d48645c runtime/import: Subtract gas fee in get_slot() 2024-01-17 15:46:29 +01:00
parazyd
f9515f3ddc runtime: Begin implementation of host function gas costs 2024-01-17 15:38:12 +01:00
zero
059dd47523 spec: add missing merkle tree section 2024-01-17 11:16:01 +01:00
aggstam
0b63956945 contract/money/error: added missing error code 2024-01-16 18:18:54 +02:00
aggstam
e829424a9c sdk/util: added block height retrieval functions and use them at appropriate places 2024-01-16 18:07:39 +02:00
parazyd
e340fa6824 sdk: Apply relevant changes related to 3240221614 2024-01-16 16:20:14 +01:00
parazyd
3240221614 runtime/import: General function cleanup and use darkfi_sdk error codes
The general idea is that functional stuff inside wasm ends at 32-bits
and anything above is considered an error as per darkfi_sdk::error.
2024-01-16 16:07:18 +01:00
parazyd
87a85e047f runtime/import: Enable pages assertion in put_object_bytes() 2024-01-16 14:18:25 +01:00
parazyd
e034470611 runtime: Minor comment cleanups and log verbosity. 2024-01-16 14:13:26 +01:00
aggstam
78a47053f1 contract/money/Cargo.toml: added missing darkfi validator feature 2024-01-16 15:08:30 +02:00
parazyd
0e6f51e895 chore: Update copyright year in license headers 2024-01-16 13:07:22 +01:00
zero
8f405308b1 test-harness: s/slot_to_day/blockheight_to_day/ 2024-01-16 12:25:00 +01:00
zero
50522bd7db dao/spec: rename all mentions of slot to blockheight 2024-01-16 12:23:12 +01:00
zero
f357f1778b spec: add money coin, current day, pedersen commits 2024-01-16 12:16:48 +01:00
zero
5fb0913cb0 Revert "sdk/crypto: use the same generator for pedersen_commit_base() and pedersen_commit_u64()"
This reverts commit f9a8b41657.
2024-01-16 10:42:45 +01:00
zero
f9a8b41657 sdk/crypto: use the same generator for pedersen_commit_base() and pedersen_commit_u64() 2024-01-16 10:28:42 +01:00
aggstam
f78f1e018d darkfid2: parse network config directly from the config file, not as flattened arg 2024-01-15 21:53:57 +02:00
parazyd
511b072c25 validator/verification: Allow fee call at any place in the transaction 2024-01-15 15:58:08 +01:00
parazyd
eecee6c829 contract/test-harness: Include Money::FeeV1 zk circuit for cached vks 2024-01-15 15:37:05 +01:00
parazyd
fc5968fb6f contract/money/integration: Assert expected PoW reward 2024-01-15 15:25:11 +01:00
parazyd
b13464f27a Revert "contract: Move POW_REWARD constant to money contract"
This reverts commit 64c80377a2.

The constant is used for PoS rewards rather than PoW.
For PoW we can use the `expected_reward()` function.
2024-01-15 15:21:37 +01:00
parazyd
e7f2b556db contract/test-harness: Update VKS and PKS checksums 2024-01-15 15:14:58 +01:00
parazyd
64c80377a2 contract: Move POW_REWARD constant to money contract 2024-01-15 15:11:45 +01:00
zero
3e04487447 spec: DerivePubKey() 2024-01-15 10:10:29 +01:00
zero
9ec277abee spec: add money contract with money transfer 2024-01-14 15:05:02 +01:00
zero
fc68e1b113 spec: DAO::propose() nullifier 2024-01-14 14:53:43 +01:00
zero
bba2c5472a make DAO nullifiers the same as money, otherwise we can't detect whether the coins we're using were already spent or not. Having access to a set non-membership merkle tree here would fix this. 2024-01-14 11:17:31 +01:00
Dastan-glitch
d3be6c2819 src/event_graph: aquire locks outside loops 2024-01-13 20:41:17 +03:00
zero
befba39321 spec: reword section on blake2 2024-01-13 17:34:28 +01:00
zero
9257e01e35 spec: DAO::mint() and DAO::propose() 2024-01-13 14:19:29 +01:00
zero
6fb5083a4e spec: change from blake3 to blake2b and add explainer why 2024-01-13 11:13:25 +01:00
Dastan-glitch
dd43ff2bfd remove unused import 2024-01-13 03:35:26 +03:00
Dastan-glitch
f46eb4c0e4 src/event_graph: request and reply multiple events 2024-01-13 03:25:02 +03:00
aggstam
7c9b3549cf darkfid2: use minerd to mine blocks, validator: cleaned up threads info as its not longer required 2024-01-12 15:03:42 +02:00
aggstam
09137d4633 script/research/minerd: handle new request trigger using smol channels 2024-01-11 17:50:03 +02:00