Svyatoslav Nikolsky
8d15338c84
SecretStore: removed extra-tracing
2017-12-21 16:20:34 +03:00
Svyatoslav Nikolsky
9104d4673c
SecretStore: reorganize service contract read
2017-12-21 16:19:15 +03:00
Svyatoslav Nikolsky
ff094e0a03
Revert "SecretStore: get rid of read_logs in ServiceContract"
...
This reverts commit 6efca8860a
.
2017-12-21 11:44:55 +03:00
Svyatoslav Nikolsky
ee1ce42546
SecretStore: extracted TasksQueue to separate file
2017-12-20 19:27:47 +03:00
Svyatoslav Nikolsky
b10d567386
SecretStore: ClusterSession::wait_session helper
2017-12-20 19:11:48 +03:00
Svyatoslav Nikolsky
6efca8860a
SecretStore: get rid of read_logs in ServiceContract
2017-12-20 17:22:28 +03:00
Svyatoslav Nikolsky
b7a744be59
SecretStore: require N confirmations in PendingRequestsIterator
2017-12-20 17:05:32 +03:00
Svyatoslav Nikolsky
d7650e2b9c
SecretStore: TrustedClient
2017-12-20 16:02:21 +03:00
Svyatoslav Nikolsky
794de9f743
SecretStore: fixing grumbles (part1)
2017-12-20 14:50:46 +03:00
Svyatoslav Nikolsky
861aa1fa4b
SecretStore: return error 404 when there's no key shares for given key on all nodes
2017-12-19 11:02:13 +03:00
Svyatoslav Nikolsky
37973f9112
SecretStore: do not update servers set until fully synchronized
2017-11-24 13:21:39 +03:00
Svyatoslav Nikolsky
009e350fc7
SecretStore: ACL checker now requires blockchain to be fully synchronized
2017-11-24 13:17:08 +03:00
Svyatoslav Nikolsky
14686f2652
SecretStore: cli option to configure service contract
2017-11-24 12:33:33 +03:00
Svyatoslav Nikolsky
333e0e1637
SecretStore: publish key only if requested through contract
2017-11-24 10:26:24 +03:00
Svyatoslav Nikolsky
989f2a0542
SecretStore: removed code comments
2017-11-24 10:26:16 +03:00
Svyatoslav Nikolsky
c296b8ac5d
SecretStore: fixed service contract update
2017-11-23 09:33:27 +03:00
Svyatoslav Nikolsky
498a708df7
fixed warnings
2017-11-23 08:22:51 +03:00
Svyatoslav Nikolsky
6a7f523cdb
SecretStore: generation_is_not_retried_if_tried_in_the_same_cycle
2017-11-23 08:07:46 +03:00
Svyatoslav Nikolsky
b036624bac
SecretStore: key_is_read_and_published_when_processing_restore_server_key_task
2017-11-23 07:26:45 +03:00
Svyatoslav Nikolsky
ea9c8a174c
SecretStore: started adding tests for ServiceContractListener
2017-11-22 17:31:34 +03:00
Svyatoslav Nikolsky
5d6abfe2f5
SecretStore: implemented restore_server_key
2017-11-22 11:51:51 +03:00
Svyatoslav Nikolsky
a2c12ab13e
SecretStore: fixed warnings
2017-11-22 11:47:15 +03:00
Svyatoslav Nikolsky
85e150dbb5
SecretStore: restore server key
2017-11-22 11:43:01 +03:00
Svyatoslav Nikolsky
7da66c24f0
SecretStore: store joint_public in key_storage
2017-11-22 11:09:48 +03:00
Svyatoslav Nikolsky
df3a8a9234
SecretStore: default ClusterSessionsListener impl
2017-11-22 10:43:16 +03:00
Svyatoslav Nikolsky
fc7f3433b7
SecretStore: removed obsolete traits
2017-11-22 10:21:14 +03:00
Svyatoslav Nikolsky
5a7e065e41
SecretStore: Kovan flush3
2017-11-22 10:05:14 +03:00
Svyatoslav Nikolsky
76e693240d
fix after merge
2017-11-20 20:02:03 +03:00
Svyatoslav Nikolsky
b5fad300ba
Merge branch 'master' into secretstore_kovan
2017-11-20 19:58:01 +03:00
Svyatoslav Nikolsky
32edb33608
removed some TODOs
2017-11-20 19:03:48 +03:00
Svyatoslav Nikolsky
01d6532875
SecretStore: fixed Ordering
2017-11-20 19:03:39 +03:00
Svyatoslav Nikolsky
3945a29ee6
SecretStore: mapping requests to KeyServer + requests retry
2017-11-20 19:03:31 +03:00
Svyatoslav Nikolsky
6618827d1a
SecretStore: cleaning up service contract listener
2017-11-20 19:03:22 +03:00
Svyatoslav Nikolsky
56875a83b3
SecretStore: Kovan flush2
2017-11-20 19:03:06 +03:00
Robert Habermeier
81212c5031
Merge branch 'master' into upload-crates
2017-11-17 16:42:41 +01:00
Svyatoslav Nikolsky
e16f6fb9d9
SecretStore: servers set change session api ( #6925 )
...
* SecretStore: first key versions flush
* SecretStore: key versions in encryption session
* SecretStore: flush key versions negotiation session
* SecretStore: connected key version negotiation session to cluster
* SecretStore: cluster sessions container refactoring
* SecretStore: flush
* SecretStore: flush key versions
* SecretStore: flush
* SecretStore: delegation proto
* SecretStore: decryption_session_is_delegated_when_node_does_not_have_key_share
* SecretStore: fixed version in decryption session
* SecretStore: signing_session_is_delegated_when_node_does_not_have_key_share
* SecretStore: started restoring admin sessions
* SecretStore: restoring admin sessions
* SecretStore: removed obsolete ShareRemove && ShareMove sessions
* SecretStore: ShareAdd math tests only require old_t+1 nodes
* SecretStore: ShareAdd revamp using new math backend
* SecretStore: do not include isolated nodes into consensus_group
* SecretStore: ServersSetChange + ShareAdd revamp
* removed debug printlns
* SecretStore: key version negotiation tests
* SecretStore: removed debug/merge artifacts
* SecretStore: fixed master node selection
* SecretStore: cleanup + tests + fixes
* SecretStore: uncommented tests
* SecretStore: cleaning up
* SecretStore: cleaning up + tests
* SecretStore: cleaning up
* SecretStore: cleaning up && tests
* SecretStore: fixing TODOs
* SecretStore: fixing TODOs + cleanup
* SecretStore: fixing TODOs
* SecretStore: nodes_add_to_the_node_with_obsolete_version
* SecretStore: nodes_add_fails_when_not_enough_share_owners_are_connected
* SecretStore: tests
* SecretStore: signing && delegation tests
* SecretStore: signing && decryption tests when some nodes are isolated
* SecretStore: sessions_are_removed_when_initialization_fails
* SecretStore: ceaning up
* SecretStore: removed obsolete comments
* SecretStore: signing_session_completes_if_node_does_not_have_a_share
* SecretStore: initial ServersSetChange API
* SecretStore: added secretstore_signServersSet RPC
* SecretStore: ChangeServersSet parse tests
* SecretStore: fixes after manual ServersSetChange tests
* lost file
* fixed network ports overlap in tests
* lost files
2017-11-16 17:34:23 +01:00
debris
a22c48b6b0
removed redundant imports
2017-11-14 17:47:41 +01:00
Svyatoslav Nikolsky
abfb9fccd3
SecretStore: Kovan integration initial commit
2017-11-14 14:26:31 +03:00
Tomasz Drwięga
f7fa9f6e9d
Drop jsonrpc_core::Error
2017-11-14 12:17:48 +01:00
Robert Habermeier
ec5519ccd1
rename hash crate to keccak-hash
2017-11-10 20:08:28 +01:00
Svyatoslav Nikolsky
7703cd226b
SecretStore: versioned keys ( #6910 )
...
* SecretStore: first key versions flush
* SecretStore: key versions in encryption session
* SecretStore: flush key versions negotiation session
* SecretStore: connected key version negotiation session to cluster
* SecretStore: cluster sessions container refactoring
* SecretStore: flush
* SecretStore: flush key versions
* SecretStore: flush
* SecretStore: delegation proto
* SecretStore: decryption_session_is_delegated_when_node_does_not_have_key_share
* SecretStore: fixed version in decryption session
* SecretStore: signing_session_is_delegated_when_node_does_not_have_key_share
* SecretStore: started restoring admin sessions
* SecretStore: restoring admin sessions
* SecretStore: removed obsolete ShareRemove && ShareMove sessions
* SecretStore: ShareAdd math tests only require old_t+1 nodes
* SecretStore: ShareAdd revamp using new math backend
* SecretStore: do not include isolated nodes into consensus_group
* SecretStore: ServersSetChange + ShareAdd revamp
* removed debug printlns
* SecretStore: key version negotiation tests
* SecretStore: removed debug/merge artifacts
* SecretStore: fixed master node selection
* SecretStore: cleanup + tests + fixes
* SecretStore: uncommented tests
* SecretStore: cleaning up
* SecretStore: cleaning up + tests
* SecretStore: cleaning up
* SecretStore: cleaning up && tests
* SecretStore: fixing TODOs
* SecretStore: fixing TODOs + cleanup
* SecretStore: fixing TODOs
* SecretStore: nodes_add_to_the_node_with_obsolete_version
* SecretStore: nodes_add_fails_when_not_enough_share_owners_are_connected
* SecretStore: tests
* SecretStore: signing && delegation tests
* SecretStore: signing && decryption tests when some nodes are isolated
* SecretStore: sessions_are_removed_when_initialization_fails
* SecretStore: ceaning up
* SecretStore: removed obsolete comments
* SecretStore: signing_session_completes_if_node_does_not_have_a_share
2017-11-02 15:33:11 +01:00
David Dorgan
bdf1e6afcc
Revert "Sync parity-ewf with parity"
...
This reverts commit f7ba063b22
.
2017-10-24 13:31:58 +01:00
David Dorgan
f7ba063b22
Sync parity-ewf with parity
2017-10-24 12:31:50 +01:00
debris
95f0384510
Merge branch 'master' into ipc_cleanup
2017-10-16 18:19:41 +02:00
Marek Kotewicz
bb1be15dc4
Merge pull request #6792 from paritytech/kvdb_error
...
consistent KeyValueDB errors
2017-10-16 18:19:18 +02:00
debris
c83e9d0f1b
remove ipc codegen from secretstore
2017-10-16 17:12:02 +02:00
debris
7661e93a56
fixed secret_store conversion from kvdb error
2017-10-16 14:55:11 +02:00
Arkadiy Paronyan
5b29b6d064
Squash remaining warnings ( #6789 )
...
* Fixed comment warnings
* Fixed remaining warnings
2017-10-16 12:31:52 +02:00
Marek Kotewicz
44db0c55c5
Merge pull request #6720 from paritytech/kvdb_split
...
separated kvdb into 3 crates: kvdb, kvdb-memorydb && kvdb-rocksdb
2017-10-16 10:57:27 +02:00
Marek Kotewicz
8365f4d80e
updated ethabi to version 4.0 ( #6742 )
...
* updated ethabi to version 4.0
* ethabi 4.0.1
2017-10-16 10:21:35 +02:00
debris
eb526b7769
separated kvdb into 3 crates: kvdb, kvdb-memorydb && kvdb-rocksdb, #6693
2017-10-12 15:36:27 +02:00
Marek Kotewicz
6279ff32f5
Separate migrations from util ( #6690 )
...
* separate migration from util and make its dependencies into libs:
* snappy
* kvdb
* error
* common
* renamed common -> macros
* util error does not depend on snappy module
* ethsync does not depend on util nor ethcore_error
* nibbleslice and nibblevec merged with patricia_trie crate
* removed unused dependencies from util
* util journaldb traits does not need to be public
* util_error
* fixed ethcore compile error
* ignore .swo files
* Update chain.rs
2017-10-10 20:01:27 +02:00
Svyatoslav Nikolsky
4e9d439f39
SecretStore: session level timeout ( #6631 )
...
* SecretStore: session level timeout
* removed obsolete TODO
2017-10-05 22:38:23 +02:00
Svyatoslav Nikolsky
6431459bcf
SecretStore: ShareRemove of 'isolated' nodes ( #6630 )
...
* SecretStore: ShareRemove from isolated nodes
* SecretStore: ServersSetChange && isolated nodes
* SecretStore: added threshold check + lost file
* SecretStore: remove isolated nodes before other sessions in ServersSetChange
* removed obsolete TODO
2017-10-05 22:37:41 +02:00
Marek Kotewicz
d8094e0629
Merge pull request #6624 from paritytech/secretstore_exclusive_sessions
...
SecretStore: exclusive sessions
2017-10-05 18:44:44 +02:00
Tomasz Drwięga
e8b418ca03
Update jsonrpc dependencies and rewrite dapps to futures. ( #6522 )
...
* Bump version.
* Fix RPC crate.
* Fix BoxFuture in crates.
* Compiles and passes tests!
* Get rid of .boxed()
* Fixing issues with the UI.
* Remove minihttp. Support threads.
* Reimplement files serving to do it in chunks.
* Increase chunk size.
* Remove some unecessary copying.
* Fix tests.
* Fix stratum warning and ipfs todo.
* Switch to proper branch of jsonrpc.
* Update Cargo.lock.
* Update docs.
* Include dapps-glue in workspace.
* fixed merge artifacts
* Fix test compilation.
2017-10-05 12:35:01 +02:00
Svyatoslav Nikolsky
8961d987a9
fixed port offset in test
2017-10-04 22:12:45 +03:00
Svyatoslav Nikolsky
1b1548f539
removed obsolete TODO
2017-10-04 12:16:45 +03:00
Svyatoslav Nikolsky
3091552504
fix indentation
2017-10-03 12:49:43 +03:00
Svyatoslav Nikolsky
fb38c20c16
SecretStore: exclusive sessions
2017-10-03 11:35:31 +03:00
Svyatoslav Nikolsky
9a086face4
SecretStore: administrative sessions prototypes ( #6605 )
...
* generate random channel encryption key on restart
* session-level nonces
* fixed warning after rebase
* session_nonce -> nonce
* full_generation_math_session_with_refreshing_shares && full_generation_math_session_with_adding_new_node
* add serveral secret shares at once
* SecretStore: initial ShareAdd session prototype
* SecretStore: ServersSetChange jobs
* SecretStore: servers set change session continued
* SecretStore: servers set change session continued
* SecretStore: servers set change session continued
* SecretStore: known_sessions iterator
* SecretStore: implemented SessionsQueue
* SecretStore: UnknownSessionsJobTransport
* SecretStore: node_added_using_servers_set_change almost done
* SecretStore: continue adding tests
* SecretStore: node_added_using_servers_set_change + node_added_using_share_add
* SecretStore: node_added_using_server_set_change_from_this_node
* SecretStore: node_moved_using_share_move
* SecretStore: node_moved_using_servers_set_change
* SecretStore: node_removed_using_share_remove
* SecretStore: node_removed_using_servers_set_change
* SecretStore: different folders for client && admin sessions
* SecretStore: started adding share change consensus (flush)
* SecretStore: fixed spurious tests failures
* enum JobPartialRequestAction
* SecretStore: started adding consensus layer to ShareAdd session
* SecretStore: starting external consensus for ShareAdd
* SecretStore: started restoring node_added_using_servers_set_change
* SecretStore: node_added_using_servers_set_change works with external consensus
* SecretStore: node_added_using_server_set_change_from_this_node works with external consensus
* removed debug comments/printlns
* SecretStore: share move session supports consensus
* SecretStore: share remove with external consensus
* SecretStore: started adding basic ShareAdd tests
* SecretStore: added ShareAdd tests
* SecretStore: added ShareAdd session to cluster
* SecretStore: added share move && remove sessions to cluster
* SecretStore: ShareMove session tests cleanup
* SecretStore: ShareRemove session tests cleanup
* SecretStore: added check_secret_is_preserved check
* SecretStore: added servers set change to cluster
* SecretStore: cleaned up ServersSetChange session tests
* SecretStore: cleaning + added tests for ShareRemove
* SecretStore: cleaning up
* SecretStore: propagated admin_public
* SecretStore: fixed persistent_key_storage test
* SecretStore: upgrade_db_from_1
* SecretStore: fixed ServersSetChange session completion
* SecretStore: check polynom1 in ShareAdd sessions (error for pre-v2 shares)
* SecretStore: fixing TODOs
* SecretStore: fixing TODOs
* SecretStore: check share change plan on 'old' slave nodes
* SecretStore: fixing TODOs
* SecretStore: store all admin sessions in single container to avoid overlaps
* SecretStore: do not update nodes set during admin sessions
* SecretStore: moved TODOs to appropriate methods
* SecretStore: TODOs
* SecretStore: added admin_public arg && fixed warnigs
* SecretStore: added shares_to_move_reversed to ShareMove session
* SecretStore: additional checks during consensus establishing
* license
* SecretStore: added TODO about starting ServersSetChange session
* SecretStore: redundant clones + docs + lsot unimplemented-s
* SecretStore: generation_session_completion_signalled_if_failed_on_master
* SecretStore: updated obsolete comment
* SecretStore: added type alias for current DocumentKeyShare serialization format
* SecretStore: fixed typo
* SecretStore; fixed warnings for futures 0.1.15
* fixed warning
2017-10-02 15:27:31 +02:00
Svyatoslav Nikolsky
3a60d723d8
SecretStore: add node to existing session poc + discussion ( #6480 )
...
* full_generation_math_session_with_refreshing_shares && full_generation_math_session_with_adding_new_node
* add serveral secret shares at once
2017-10-02 11:07:18 +02:00
Svyatoslav Nikolsky
7cc43893d8
Revert "SecretStore; fixed warnings for futures 0.1.15"
...
This reverts commit 61daa5f3e7
.
2017-09-28 14:43:51 +03:00
Svyatoslav Nikolsky
61daa5f3e7
SecretStore; fixed warnings for futures 0.1.15
2017-09-28 14:43:05 +03:00
Hawstein
ade37be25b
separate trie from util and make its dependencies into libs:
...
* bytes
* hashdb
* memorydb
* nibbleslice
* nibblevec
2017-09-15 11:03:53 +08:00
Svyatoslav Nikolsky
e3fc3ccada
SecretStore: use random key to encrypt channel + session-level nonce ( #6470 )
...
* generate random channel encryption key on restart
* session-level nonces
* fixed warning after rebase
* session_nonce -> nonce
2017-09-14 19:29:01 +02:00
Svyatoslav Nikolsky
8f434cd02c
secretstore: attributes under docs ( #6475 )
2017-09-06 11:09:22 +02:00
Fredrik Harrysson
dccdedc001
Merge branch 'master' into fo-6418-dont-export-bigint
2017-09-05 10:48:54 +02:00
Svyatoslav Nikolsky
2df61d0a8c
Merge pull request #6411 from paritytech/secretstore_tests
...
Added missing SecretStore tests - signing session
2017-09-05 10:35:21 +03:00
Fredrik
308f36a532
Don't reexport bigint from util
2017-09-04 16:36:49 +02:00
NikVolf
e00de28556
proper update
2017-09-03 19:54:18 +02:00
Gav Wood
0309462b36
Update signing_session.rs
2017-09-03 09:06:41 +02:00
Gav Wood
b4cd7ca49a
Update consensus_session.rs
2017-09-03 09:06:19 +02:00
debris
7849fff41e
finished
2017-08-31 11:35:41 +02:00
Svyatoslav Nikolsky
a3eceb0c6c
added missing SecretStore tests
2017-08-29 15:35:39 +03:00
Svyatoslav Nikolsky
a02db13278
moved attributes under docs
2017-08-16 09:40:00 +03:00
Svyatoslav Nikolsky
cc95edf4dc
fixed grumbles
2017-08-09 18:17:28 +03:00
Svyatoslav Nikolsky
9b34c77f98
Merge branch 'master' into secretstore_stresstest
2017-08-09 12:29:29 +03:00
Svyatoslav Nikolsky
33ba5b63f3
SecretStore: encrypt messages using private key from key store ( #6146 )
...
* do not cache ACL storage contract
* when error comes before initialization
* initial KeyServerSet commit
* update_nodes_set in maintain
* do not connect to self
* fixed connection establishing
* removed println
* improved KeyServerSet tracing
* moved parsing to KeyServerSet
* re-read only when blockchain is changed
* do not try to connect if not a part of cluster
* improved logging
* fixed tests
* NodeKeyPAir trait
* fixed parity to use new trait
* continue integrating with parity
* updated parity for NodeKeyPair
* completed KeyStoreNodeKeyPair
* removed comment
* removed dependency && style
2017-08-09 11:09:40 +02:00
Svyatoslav Nikolsky
872e5537bb
SecretStore: do not cache ACL contract + on-chain key servers configuration ( #6107 )
...
* do not cache ACL storage contract
* when error comes before initialization
* initial KeyServerSet commit
* update_nodes_set in maintain
* do not connect to self
* fixed connection establishing
* removed println
* improved KeyServerSet tracing
* moved parsing to KeyServerSet
* re-read only when blockchain is changed
* do not try to connect if not a part of cluster
* improved logging
* fixed tests
2017-08-07 18:54:05 +02:00
Tomasz Drwięga
f157461ee1
Multi-call RPC ( #6195 )
...
* Removing duplicated pending state accessors in miner.
* Merge miner+client call.
* Multicall & multicall RPC.
* Sensible defaults.
* Fix tests.
2017-08-04 15:58:14 +02:00
Svyatoslav Nikolsky
47c058a337
fixed warning
2017-08-02 12:05:47 +03:00
Svyatoslav Nikolsky
c345bc3d85
cli option to disable SS ACL check
2017-07-27 15:48:07 +03:00
Svyatoslav Nikolsky
7c05a906d0
cli option to disable SS HTTP API
2017-07-27 13:29:09 +03:00
Svyatoslav Nikolsky
dcfb8c1a10
fixed generation session lags
2017-07-26 14:09:52 +03:00
Svyatoslav Nikolsky
417a037ac5
improved logging
2017-07-26 14:09:41 +03:00
Svyatoslav Nikolsky
4938dfd971
removed comment
2017-07-25 17:57:27 +03:00
Svyatoslav Nikolsky
eb895fbb31
completed KeyStoreNodeKeyPair
2017-07-25 17:54:32 +03:00
Svyatoslav Nikolsky
2e9df2c39d
updated parity for NodeKeyPair
2017-07-25 16:30:24 +03:00
Svyatoslav Nikolsky
45f2b82411
NodeKeyPAir trait
2017-07-25 09:24:54 +03:00
Svyatoslav Nikolsky
b31b067743
fixed tests
2017-07-24 12:36:31 +03:00
Svyatoslav Nikolsky
5fb9652af5
improved logging
2017-07-21 11:25:26 +03:00
Svyatoslav Nikolsky
023e5b4b90
do not try to connect if not a part of cluster
2017-07-21 10:49:10 +03:00
Svyatoslav Nikolsky
c94c799347
re-read only when blockchain is changed
2017-07-20 13:28:31 +03:00
Svyatoslav Nikolsky
b9ad093d06
moved parsing to KeyServerSet
2017-07-20 13:15:16 +03:00
Svyatoslav Nikolsky
a35db9f454
improved KeyServerSet tracing
2017-07-20 12:55:52 +03:00
Svyatoslav Nikolsky
9a9c4f6ad6
removed println
2017-07-20 12:25:41 +03:00
Svyatoslav Nikolsky
80b9e931f5
fixed connection establishing
2017-07-20 12:19:29 +03:00
Svyatoslav Nikolsky
7664ff5acd
do not connect to self
2017-07-19 15:14:37 +03:00
Svyatoslav Nikolsky
5080cc3c9e
update_nodes_set in maintain
2017-07-19 12:36:40 +03:00