2b1d148ceb
* Add randomness contract support to Authority Round. Changes have been cherry-picked from poanetwork's aura-pos branch. Most of the work has been done by @mbr. * Address review comments for randomness contract. Co-Authored-By: David <dvdplm@gmail.com> * Rename revealSecret to revealNumber * Update Randomness contract bytecode * Use H256, rename secret to random number. * Use get_commit_and_cipher * Clean up Miner::prepare_block. * Remove is_reveal_phase call. * Add more comments, require randomness contract map. * Simplify run_randomness_phase * Address review comments. * Remove Client::transact_contract.
46 lines
1.4 KiB
TOML
46 lines
1.4 KiB
TOML
[package]
|
|
description = "Non-instant BFT proof-of-authority blockchain engine"
|
|
name = "authority-round"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
license = "GPL-3.0"
|
|
|
|
[dependencies]
|
|
block-reward = { path = "../../block-reward" }
|
|
client-traits = { path = "../../client-traits" }
|
|
common-types = { path = "../../types" }
|
|
derive_more = "0.15.0"
|
|
ethabi = "9.0.1"
|
|
ethabi-contract = "9.0.0"
|
|
ethabi-derive = "9.0.1"
|
|
ethereum-types = "0.8.0"
|
|
ethjson = { path = "../../../json" }
|
|
parity-crypto = { version = "0.4.2", features = ["publickey"] }
|
|
engine = { path = "../../engine" }
|
|
io = { package = "ethcore-io", path = "../../../util/io" }
|
|
itertools = "0.5"
|
|
keccak-hash = "0.4.0"
|
|
lazy_static = "1.3.0"
|
|
log = "0.4"
|
|
lru-cache = "0.1"
|
|
machine = { path = "../../machine" }
|
|
macros = { path = "../../../util/macros" }
|
|
parity-bytes = "0.1"
|
|
parking_lot = "0.9"
|
|
rand = "0.7"
|
|
rlp = "0.4.0"
|
|
time-utils = { path = "../../../util/time-utils" }
|
|
unexpected = { path = "../../../util/unexpected" }
|
|
validator-set = { path = "../validator-set" }
|
|
|
|
[dev-dependencies]
|
|
accounts = { package = "ethcore-accounts", path = "../../../accounts" }
|
|
engine = { path = "../../engine", features = ["test-helpers"] }
|
|
env_logger = "0.6.2"
|
|
ethcore = { path = "../..", features = ["test-helpers"] }
|
|
spec = { path = "../../spec" }
|
|
state-db = { path = "../../state-db" }
|
|
validator-set = { path = "../validator-set", features = ["test-helpers"] }
|
|
serde_json = "1"
|