Commit Graph

3793 Commits

Author SHA1 Message Date
zero
639b4e89df test-harness: s/slot_to_day/blockheight_to_day/ 2024-01-18 19:30:31 +01:00
zero
4cd92a8189 dao/spec: rename all mentions of slot to blockheight 2024-01-18 19:30:31 +01:00
zero
6b9ea039d7 spec: add money coin, current day, pedersen commits 2024-01-18 19:30:31 +01:00
zero
be4898e0c7 Revert "sdk/crypto: use the same generator for pedersen_commit_base() and pedersen_commit_u64()"
This reverts commit f9a8b41657.
2024-01-18 19:30:31 +01:00
zero
e46c6dbb6b sdk/crypto: use the same generator for pedersen_commit_base() and pedersen_commit_u64() 2024-01-18 19:30:31 +01:00
parazyd
8087222a86 validator/verification: Allow fee call at any place in the transaction 2024-01-18 19:30:31 +01:00
parazyd
8e5e997426 contract/test-harness: Include Money::FeeV1 zk circuit for cached vks 2024-01-18 19:30:31 +01:00
parazyd
d7ef5c25e1 contract/money/integration: Assert expected PoW reward 2024-01-18 19:30:31 +01:00
parazyd
5d8e4a5451 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-18 19:30:31 +01:00
parazyd
ab044b02fd contract/test-harness: Update VKS and PKS checksums 2024-01-18 19:30:31 +01:00
parazyd
d42ba0d511 contract: Move POW_REWARD constant to money contract 2024-01-18 19:30:31 +01:00
zero
ce5a92ff21 spec: add money contract with money transfer 2024-01-18 19:30:31 +01:00
zero
9fd2e2e467 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-18 19:30:31 +01:00
Dastan-glitch
77fb9d4321 src/event_graph: aquire locks outside loops 2024-01-18 19:30:31 +01:00
zero
111c803085 spec: DAO::mint() and DAO::propose() 2024-01-18 19:30:31 +01:00
Dastan-glitch
2fe38d699c remove unused import 2024-01-18 19:30:31 +01:00
Dastan-glitch
2074625d1d src/event_graph: request and reply multiple events 2024-01-18 19:30:31 +01:00
aggstam
efe6f39041 darkfid2: use minerd to mine blocks, validator: cleaned up threads info as its not longer required 2024-01-18 19:30:31 +01:00
aggstam
daa625d856 validator:pow: decoulbed mine_block() from PowModule so it can be used outside of it 2024-01-18 19:30:31 +01:00
parazyd
31d0d2f617 validator: Configurable fee verification, incomplete
It's now only used in add_transactions(), but needs to be in other
places as well.
2024-01-18 19:30:31 +01:00
parazyd
2f9a9cc237 contract/money/integration: Gather block reward owncoins 2024-01-18 19:30:31 +01:00
parazyd
9c18ec3446 contract/money: Fix slot generation in integration test 2024-01-18 19:30:31 +01:00
parazyd
ecc5c6ae11 contract/money: WIP complete integration test 2024-01-18 19:30:31 +01:00
parazyd
d24248d026 contract/money: Rename "integration" test to "token_mint" 2024-01-18 19:30:31 +01:00
parazyd
7a6b0a5203 contract/money: Ignore benchmark tests when running test units 2024-01-18 19:30:31 +01:00
zero
62b9cdc04c dao model: add note about blake2 hash function usage 2024-01-18 19:30:31 +01:00
zero
870fd3e246 dao: replace use of blake3 hash with blake2b. See code comments for explanation of the rationale 2024-01-18 19:30:31 +01:00
zero
063a03e892 dao::vote(): correct mistake in nullifier 2024-01-18 19:30:31 +01:00
zero
9a2505c9e1 zk/debug: add Uint32 and MerklePath for export_witness_json() 2024-01-18 19:30:31 +01:00
parazyd
690b747b26 contract/test-harness: Set fixed-difficulty=1 mining 2024-01-18 19:30:31 +01:00
zero
901793bb79 spec2: vote nullifiers and finish dao model page 2024-01-18 19:30:31 +01:00
zero
fd177220e1 spec2: DAO model 2024-01-18 19:30:31 +01:00
aggstam
a318bb3d76 validator: check if proposal already exists when looking ofr its fork index
This also solves the bug where when appending a dublicated proposal, a new duplicate fork being created, resulting in never finalizing, as forks of same height existed
2024-01-18 19:30:31 +01:00
parazyd
b10b078147 runtime: Disable payload debug message on Deploy 2024-01-18 19:30:31 +01:00
parazyd
099e2e72ba contract: Strip built WASM binaries using wasm-strip from the wabt toolkit 2024-01-18 19:30:31 +01:00
parazyd
ed892ea991 contract/deployooor: Update API to use DarkLeaf for contract calls 2024-01-18 19:30:31 +01:00
parazyd
b0ba8b7d3d validator: Deploy the deployooor contract as a native contract 2024-01-18 19:30:31 +01:00
parazyd
80b650e4f5 contract/deployooor: Add initial integration test 2024-01-18 19:30:30 +01:00
parazyd
9d2671d9c7 validator: Move DeployParamsV1 to darkfi-sdk 2024-01-18 19:30:30 +01:00
parazyd
55f72d0956 validator: Implement contract deployment handling upon tx verification 2024-01-18 19:30:30 +01:00
parazyd
cb9f095e9d contract/deployooor: Include deployment instruction payload in params 2024-01-18 19:30:30 +01:00
parazyd
0668ac4606 contract/deployooor: Implement initial client API 2024-01-18 19:30:30 +01:00
parazyd
f2390ec288 runtime: Remove unused sanity_check() function
This is now done inside the deployooor contract.
2024-01-18 19:30:30 +01:00
parazyd
7240e6251f chore: Clippy lints 2024-01-18 19:30:30 +01:00
zero
59a819b9aa remove unmaintained ShareAddress 2024-01-18 19:30:30 +01:00
zero
d30a0f312c dao::vote(): add proposal_bulla to the nullifiers 2024-01-18 19:30:30 +01:00
parazyd
77f3c0d079 net: Port from deprecated async-rustls to futures-rustls.
This is also a protocol-breaking change. We now have a bit looser
certificate verification that does not append the base32-encoded
public key into the altName.
2024-01-18 19:30:30 +01:00
parazyd
857ebb42bf chore: Update crate dependencies 2024-01-18 19:30:30 +01:00
zero
bbddc4d0b6 spec2: sections on concepts, notation, pallas/vesta 2024-01-18 19:30:30 +01:00
zero
9ae3668779 spec2: add section on crypto schemes 2024-01-18 19:30:30 +01:00