Commit Graph

7714 Commits

Author SHA1 Message Date
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
d67c3d2029 spec: DerivePubKey() 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
493fbfe1eb spec: DAO::propose() nullifier 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
c83347857e spec: reword section on blake2 2024-01-18 19:30:31 +01:00
zero
111c803085 spec: DAO::mint() and DAO::propose() 2024-01-18 19:30:31 +01:00
zero
cda4521dad spec: change from blake3 to blake2b and add explainer why 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
54a2674717 script/research/minerd: handle new request trigger using smol channels 2024-01-18 19:30:31 +01:00
aggstam
4fffd4ac2c script/research/minerd: miner daemon skeleton 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
fecd412ecf book: botched move 2024-01-18 19:30:31 +01:00
zero
4d411b0934 book: git mv spec2 spec 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
parazyd
68f08077f8 ci: Install wabt for book gen 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
aggstam
494da41475 contrib/dependency_setup.sh: wabt dep dependency added for xbps 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
4ec1daa589 chore: Enable some additional arti-client crate features
Additionally perform a dependency update.
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
zero
08e1ddc33c ec: fix small typos 2024-01-18 19:30:30 +01:00
parazyd
a4b011e93e book: Fix ZK circuit paths for RLN page 2024-01-18 19:30:30 +01:00