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
aggstam
463790ee83
.github/workflows/ci.yml: updated dependencies, contrib/docker/*: updated dependencies and minor cleanup
...
Only Dockerfile.alpine was tested, it works. Rest should also work. NFA, DYOR
2023-06-07 02:29:12 +03:00
aggstam
03a26f109c
contract/consensus/proposal: validate input coin is not on unstake set
2023-06-07 00:26:28 +03:00
aggstam
b6a58ef597
contract/consensus: introduce unstake request and unstake timelock
...
Staker will have to request to unstake their token. Once request pass, tokens are locked and they can't use them to participate in proposals or unstake them. After grace(lock) period has passed, they can normaly unstake them(move them to Money).
2023-06-06 23:51:36 +03:00
aggstam
9054780c28
util/time/TimeKeeper: changed slot epoch calculation(increment by 1)
2023-06-06 23:51:36 +03:00
aggstam
e2ad94dfff
contract/consensus: introduce stake timelock
...
With this check added, a staker is only able to propose after grace(lock) period has passed
2023-06-06 23:51:36 +03:00
Dastan-glitch
9c2f9630ef
event_graph: fix/add debug msgs
2023-06-06 22:41:19 +03:00
Dastan-glitch
5a3d609830
event_graph: remove InvItem id field
2023-06-06 22:34:30 +03:00
parazyd
3db33c07b4
event_graph: WIP integration test.
2023-06-06 19:53:06 +02:00
parazyd
5116377b00
Add some missing deps for fun
2023-06-06 18:11:04 +02:00
parazyd
08e92dbde3
util: Implement RingBuffer as exportable API
2023-06-06 16:09:30 +02:00
parazyd
0d6f9600bb
drk: Clippy lint
2023-06-06 16:05:47 +02:00
parazyd
bfc99c79ea
chore: Update crate dependencies.
2023-06-06 14:06:36 +02:00
parazyd
88865e2663
drk: Replace "play" with "rodio".
...
Fun police go away.
This removes the deps on pkgconfig and libmpg123, and should ease the
build process for non GNU/Linux operating systems.
2023-06-06 14:06:36 +02:00
aggstam
39be99644c
contract/*: created test-no-run target in Makefile
2023-06-06 14:44:18 +03:00
parazyd
09eb0e1147
sdk: Implement a macro for bs58 => pallas::Base and use it where applicable.
2023-06-06 13:16:36 +02:00
parazyd
16a14a7260
Makefile: Add test-no-run target to be able to only compile tests.
2023-06-06 13:03:41 +02:00
parazyd
bd13d9fa9b
book/development: Add note on codecov.
2023-06-06 13:03:41 +02:00
Andreas Doerr
2266d8be02
chore: Fix cargo doc warnings ( #174 )
...
Signed-off-by: adoerr <0xad@gmx.net >
2023-06-06 10:57:52 +00:00
aggstam
ced0fe179a
contract/consensus: chop chop
2023-06-05 23:51:31 +03:00
aggstam
ee54c27b67
contract/consensus: tests fixed
2023-06-05 23:35:31 +03:00
aggstam
7c186422c9
contract/consensus: removed ZERO suffixes on poseidon hashes
2023-06-05 23:27:47 +03:00
aggstam
128725cffc
[WIP] contract/consensus: fixed proof constrains
2023-06-05 22:47:33 +03:00
aggstam
2c6d392c83
[WIP] contract/consensus: create single proposal proof/call
2023-06-05 21:59:39 +03:00
aggstam
53682169cd
sdk: get_verifying_slot_epoch added
2023-06-05 21:59:39 +03:00