Robert Habermeier
c1d4ae5a53
KeyStore implementation + key derivation ( #97 )
...
* improve ed25519 bindings
* probably broken child derivation
* basic keystore
* keystore integration in CLI
* constant-time mac comparison
* fix spaces
2018-03-16 17:39:49 +01:00
Robert Habermeier
68515bd9ff
runtime-storage macro ( #86 )
...
* initial draft of the macro
* traits for all storage types
* test for list wrapper
* map API
* move generator to runtime-support
* specialize traits further for runtime storage
* restore storage vec for unhashed
2018-03-14 15:39:51 +01:00
Gav
75002884fe
Update wasm.
2018-03-14 12:44:15 +01:00
Gav
0744e5a9a3
Merge branch 'master' into gav-demo
2018-03-14 12:03:44 +01:00
Gav
c64d4980b4
Remove stray printlns.
2018-03-14 11:58:03 +01:00
Robert Habermeier
27c9e6de9a
Slash Authorities for irrefutable misbehavior ( #84 )
...
* double-commit and prepare misbehavior
* get misbehavior on completion
* collect misbehavior on drop, not only on success
* kill unused transaction_index field
* add primitive misbehavior report type
* add misbehavior report transaction
* store prior session
* fix set_items
* basic checks for misbehavior reports
* crate for substrate bft misbehavior checking
* integrate misbehavior check crate
* fix comment
* new wasm binaries
* fix hash in test
* import misbehavior transactions into queue
* fix test build
* sign on digest and full proposal when proposing
* detect proposal misbehavior
* fix fallout
* restore balance/bondage types
2018-03-13 16:39:27 +01:00
Gav
df4edb507e
Formatting.
2018-03-12 16:43:58 +01:00
Gav
f9dd7093f1
Additional function ids for derivation.
2018-03-12 10:52:05 +01:00
Gav
550ec8cdf5
Cleanups and introduce all dispatchable endpoints.
2018-03-12 10:15:30 +01:00
Gav
873b579726
Minor typos.
2018-03-11 17:30:25 +01:00
Gav
80a95d843c
Fix grumbles.
2018-03-11 17:27:59 +01:00
Gav
13bc601c14
Fix tests and avoid use of old keys.
2018-03-10 19:28:56 +01:00
Gav
4ad8b95d61
Safe panic.
2018-03-10 19:23:38 +01:00
Gav
62f3bee9c1
Public function dispatching.
2018-03-10 19:23:10 +01:00
Gav
aadf3e2493
Tests for staking reserved balances & slashing.
2018-03-10 18:42:50 +01:00
Gav
8c0c504997
Use a struct!
2018-03-07 19:36:13 +01:00
Jaco Greeff
de6e7e9136
Format wasm bin version with semver ( #87 )
2018-03-07 17:54:32 +01:00
Gav
3ad3288508
Genesis map.
...
- fix warning
- remove more bare string ids
2018-03-07 12:16:12 +01:00
Gav
19424ce2ce
Introduce stake reservation; make panicking tests better.
2018-03-06 21:09:41 +01:00
Gav
a3ad686760
Move democracy module over no new Keyring API
2018-03-06 17:37:53 +01:00
Gav
c055012028
Move council over to new Keyring API.
2018-03-06 17:33:19 +01:00
Gav
fb61e2db32
Final tests.
2018-03-06 16:21:27 +01:00
Gav
d12eee1164
Another few tests for council_vote.
2018-03-05 15:58:06 +01:00
Gav
0ab638928d
council vetoing & tests.
2018-03-05 15:50:40 +01:00
Gav
7d378d3de3
More tests for council voting.
...
Also allow AsRef to be used for Public keys to simplify test code.
2018-03-05 12:11:56 +01:00
Gav
8d84ca8b48
Initial council vote logic.
2018-03-04 21:52:11 +01:00
Gav
f056dea47e
Ensure council always sorted by expiry.
2018-03-04 20:55:14 +01:00
Gav
f7af45f95b
remove string constants <-- @rphmeier
2018-03-04 19:36:26 +01:00
Gav
650e30d39c
Tests for public referenda.
2018-03-04 13:47:36 +01:00
Gav
311337f5dc
Tests for public referenda.
2018-03-04 13:17:53 +01:00
Gav
6476f26815
Introduce minimum deposit
2018-03-03 19:30:07 +01:00
Gav
e8d38add64
cleanups.
2018-03-03 19:04:42 +01:00
Gav
cf81e1dbb6
Deposits, not fees.
2018-03-03 19:01:39 +01:00
Gav
e07aef7766
Introduce logic for deposits.
2018-03-03 14:36:37 +01:00
Gav
6cf236fb02
Simultaneous referendums and multiple voting variants.
2018-03-03 11:26:56 +01:00
Gav
f5515ff673
Update docs
2018-03-02 20:11:16 +01:00
Gav
c298331c3d
test: against double presentations.
2018-03-02 19:18:54 +01:00
Gav
f0699b9c8d
Avoid allowing same accounts to be doubly-elected.
2018-03-02 19:14:35 +01:00
Gav
b611881e8f
Add one vote worth of time for voters to unregister before they become "inactive".
2018-03-02 18:43:15 +01:00
Gav
36bd7f0608
Additional docs & test.
2018-03-02 18:11:03 +01:00
Gav
60697d4402
tests: Retract inactive voter
2018-03-02 18:02:20 +01:00
Gav
a633a257ef
Merge branch 'master' into gav-demo
2018-03-02 14:59:32 +01:00
Gav
d034f647f7
cleanups.
2018-03-02 14:41:20 +01:00
Gav
d247a2e2b3
tests: presenting losers
2018-03-02 14:40:36 +01:00
Gav
826a06fc23
Tests: various error cases with present.
2018-03-02 14:33:03 +01:00
Gav
011a975363
test: second tally uses runners-up.
2018-03-02 14:19:44 +01:00
Gav
d82e0fb6fa
More tests, for runners-up.
2018-03-02 14:00:23 +01:00
Gav
9066313d18
Test for tally
2018-03-02 13:39:49 +01:00
Gav
4e19dc6ef1
More tests for voting.
2018-03-02 11:34:06 +01:00
Gav
4435d65206
More candidate tests.
2018-03-02 10:09:27 +01:00