Commit Graph

6080 Commits

Author SHA1 Message Date
parazyd
0feda5f8e5 contract/dao: Use AeadEncryptedNote from darkfi-sdk. 2023-06-12 15:03:24 +02:00
parazyd
2edd5d0220 faucetd: Use the wrapped MerkleTree type where applicable 2023-06-12 14:31:20 +02:00
parazyd
c2a308ccb6 ircd: Clippy lint 2023-06-12 14:31:20 +02:00
parazyd
afa34c59b1 contract/consensus: Replace incrementalmerkletree with bridgetree crate. 2023-06-12 14:31:20 +02:00
parazyd
48ce9fd7c5 chore: Update crate dependencies 2023-06-12 14:31:20 +02:00
parazyd
30e814cfec research/rln: Update to bridgetree API 2023-06-12 14:31:19 +02:00
parazyd
6ac0d226bb serial: Clippy lint in endian.rs 2023-06-12 14:31:19 +02:00
parazyd
7cc0f78159 contract/consensus: Replace incrementalmerkletree with bridgetree 2023-06-12 14:31:19 +02:00
parazyd
f085bc7e8d drk: Use bridgetree instead of incrementalmerkletree. 2023-06-12 14:31:19 +02:00
parazyd
326fa7e2d1 contract/dao: Replace incrementalmerkletree with bridgetree crate. 2023-06-12 14:31:19 +02:00
parazyd
402d0f3874 contract/money: Replace incrementalmerkletree with bridgetree crate. 2023-06-12 14:31:19 +02:00
parazyd
8257d7cdbe sdk: Replace incrementalmerkletree with bridgetree crate. 2023-06-12 14:31:19 +02:00
parazyd
24b26fa6f1 serial: Replace incrementalmerkletree with bridgetree crate. 2023-06-12 14:31:19 +02:00
parazyd
aec4ed8a53 book: Document Consensus::Unstake 2023-06-12 11:46:00 +02:00
parazyd
04af1e6e95 contract/money: Clean up Money::UnstakeV1 2023-06-12 11:46:00 +02:00
parazyd
45f10ea7c9 contract/consensus: Clean up UnstakeV1 client API 2023-06-12 11:33:35 +02:00
parazyd
cbbbd18ff6 contract/consensus: Clean up and reorder UnstakeV1 state transition 2023-06-12 11:16:17 +02:00
parazyd
735ac84144 contract/consensus: Create new output keypair for UnstakeRequest. 2023-06-12 11:16:17 +02:00
omahs
5f0559e910 book: Fix typos
This fixes some typos in the mdbook (#177)
2023-06-12 09:15:52 +00:00
parazyd
e22d4d422c contract/consensus: Add section comment for lottery part of the proposal zk proof 2023-06-11 20:40:04 +02:00
parazyd
80cf2eea5c book/consensus: Document UnstakeRequest. 2023-06-11 19:53:54 +02:00
parazyd
b243e2f5f6 contract/consensus: Introduce separate Merkle tree for unstaked coins 2023-06-11 19:53:53 +02:00
parazyd
2ec4d0fc59 contract/consensus: Differentiate between staked and unstaked dbs clearly 2023-06-11 19:53:27 +02:00
parazyd
9bc88a5fa2 contract/consensus: Remove slot param from ProposalV1 2023-06-11 19:11:11 +02:00
parazyd
e704e79c04 book: Document Consensus::Proposal 2023-06-11 18:18:58 +02:00
parazyd
120c38b0dc contract/consensus: Use runtime slot calculation in ProposalV1 and hardcode reward. 2023-06-11 18:18:58 +02:00
parazyd
78043aa55e contract/consensus: Clean up proposal_v1 contract code. 2023-06-11 18:18:58 +02:00
odysseas.eth
d4ae88217d Update blockchain.md 2023-06-10 16:21:05 +00:00
parazyd
23fd275a31 contract/consensus: Support not reusing keys for new outputs in the test harness. 2023-06-08 21:31:09 +02:00
parazyd
66c7709481 contract/consensus: Make witness names in the Proposal proof more sensible. 2023-06-08 21:30:26 +02:00
parazyd
7b24085790 contract/consensus: Clean up Proposal client API 2023-06-08 13:37:45 +02:00
parazyd
7fa2d8efc4 contract/consensus: Remove pedersen commitment for serial from Proposal proof 2023-06-08 12:53:49 +02:00
parazyd
05c5e133ef book/consensus: Note the zkas circuits in stake.md
Signed-off-by: parazyd <parazyd@dyne.org>
2023-06-08 12:50:39 +02:00
parazyd
b49011d6b6 CI: Update mdbook bins
Signed-off-by: parazyd <parazyd@dyne.org>
2023-06-08 12:50:37 +02:00
aggstam
2b8cfb958a contract/consensus: use second to last proposal/block hash in vrf input 2023-06-08 13:42:35 +03:00
parazyd
afc855457c contract/money: Add missing doc anchor 2023-06-07 19:50:38 +02:00
parazyd
6df3990e8a contract/money: Fix typos in some of the error enums. 2023-06-07 19:45:48 +02:00
parazyd
c9556a160c contract/consensus: Introduce ConsensusUnstakeReqParams due to previous commit. 2023-06-07 19:45:48 +02:00
parazyd
74228af058 contract/consensus: Use Money's Input struct for the Consensus::Stake params. 2023-06-07 19:07:12 +02:00
parazyd
01b6b6b1d9 contract/consensus: Don't check signature in StakeV1, it's already checked in Money. 2023-06-07 19:06:10 +02:00
parazyd
8b5717c4f2 book: Document consensus Stake functionality. 2023-06-07 18:56:35 +02:00
parazyd
db3f3af6d1 contract/money: Enforce input spend_hook is zero for StakeV1. 2023-06-07 18:02:23 +02:00
parazyd
f61aa41fac contract/consensus: Minor cleanups. 2023-06-07 16:38:57 +02:00
aggstam
4e521f2826 contract/consensus: use previous proposal/block hash in vrf input 2023-06-07 16:42:44 +03:00
aggstam
e436e6d069 consensus/state/SlotCheckpoint: renamed eta to previous eta and introduced fork hashes vector 2023-06-07 16:42:44 +03:00
aggstam
1035ca4ce5 contract/consensus: use vector instead of array for VRF input creation 2023-06-07 16:42:44 +03:00
aggstam
9bf0937d56 contract/consensus/proof: removed obselete proofs 2023-06-07 16:42:44 +03:00
parazyd
212d04bbc7 book: Document consensus GenesisStake functionality. 2023-06-07 14:42:56 +02:00
parazyd
95a2da019b contract: Use native constants instead of wrapped ones for ZERO. 2023-06-07 14:25:57 +02:00
aggstam
e77f801a1f .github/workflows/book.yml: updated dependencies 2023-06-07 02:44:35 +03:00