rakita
27a0142af1
OpenEthereum rebranding ( #31 )
2020-09-22 14:53:52 +02:00
Svyatoslav Nikolsky
ef0eda0c39
SecretStore: use in-memory transport in cluster tests ( #9850 )
...
* fixing SS tests
* removed some redundant clones
* fixed grumbles
* replaced hash.clone() with *hash + fixed comment
* lost files
2019-02-18 13:38:19 +01:00
Tomasz Drwięga
ff0095ac5e
Move a bunch of stuff around ( #10101 )
...
* Move devtools.
* Merge stop_guard & rename memzero
* Move price-info to miner.
* Group account management
* Clean up workspace members.
* Move local store closer to miner.
* Move clib examples.
* Move registrar and hash-fetch
* Move rpc_cli/rpc_client
* Move stratum closer to miner.
* Fix naming convention of crates.
* Update Cpp examples path.
* Fix paths for clib-example.
* Fix removing build.
2018-12-28 17:33:49 +08:00
Nick Sanders
c880716f16
Remove secret_store runtimes. ( #9888 )
...
* Remove the independent runtimes from `KeyServerHttpListener` and
`KeyServerCore` and instead require a `parity_runtime::Executor`
to be passed upon creation of each.
* Remove the `threads` parameter from both `ClusterConfiguration` structs.
* Implement the `future::Executor` trait for `parity_runtime::Executor`.
* Update tests.
- Update the `loop_until` function to instead use a oneshot to signal
completion.
- Modify the `make_key_servers` function to create and return a runtime.
2018-11-26 01:36:43 +08:00
Nick Sanders
68ca8df22f
Replace tokio_core
with tokio
(ring
-> 0.13) ( #9657 )
...
* Replace `tokio_core` with `tokio`.
* Remove `tokio-core` and replace with `tokio` in
- `ethcore/stratum`
- `secret_store`
- `util/fetch`
- `util/reactor`
* Bump hyper to 0.12 in
- `miner`
- `util/fake-fetch`
- `util/fetch`
- `secret_store`
* Bump `jsonrpc-***` to 0.9 in
- `parity`
- `ethcore/stratum`
- `ipfs`
- `rpc`
- `rpc_client`
- `whisper`
* Bump `ring` to 0.13
* Use a more graceful shutdown process in `secret_store` tests.
* Convert some mutexes to rwlocks in `secret_store`.
* Consolidate Tokio Runtime use, remove `CpuPool`.
* Rename and move the `tokio_reactor` crate (`util/reactor`) to
`tokio_runtime` (`util/runtime`).
* Rename `EventLoop` to `Runtime`.
- Rename `EventLoop::spawn` to `Runtime::with_default_thread_count`.
- Add the `Runtime::with_thread_count` method.
- Rename `Remote` to `Executor`.
* Remove uses of `CpuPool` and spawn all tasks via the `Runtime` executor
instead.
* Other changes related to `CpuPool` removal:
- Remove `Reservations::with_pool`. `::new` now takes an `Executor` as an argument.
- Remove `SenderReservations::with_pool`. `::new` now takes an `Executor` as an argument.
2018-10-22 09:40:50 +02:00
Svyatoslav Nikolsky
e23e22cb81
removed extra assert in generation_session_is_removed_when_succeeded ( #9738 )
2018-10-15 16:02:09 +01:00
Marek Kotewicz
7f9a9e2e82
ignore key_server_cluster randomly failing tests ( #9639 )
...
* ignore key_server_cluster randomly failing tests, related to #9635
* added explanation comment to test #[ignore]
2018-09-25 14:15:35 +01:00
David
72fd1fa58d
Fetch parity-common
crates from crates.io ( #9410 )
...
* Fetch `parity-common` crates from crates.io
* Add doc tests from `patricia-trie` to `patricia-trie-ethereum`
Fix/update a few deps
* [ethkey] upgrade ethereum-types
* [whisper] update deps
* [network] deps
* [network-devp2p] deps
* [journaldb] deps
* [fastmap] deps
* [miner] deps and test fixes
* [machine] deps
* [json] deps
* [hw] deps
* [ethash] deps
* [registrar] deps
* Update a few more dependencies with new ethabi-*
* [updater] Update deps
* deps
* [ethcore] Update deps
* Use new parity-snappy and parity-rocksdb crates
* Updated submodules
* Use parity-snappy 0.1
* Use kvdb-rocksdb 0.1.2
* Don't use latest ethereum/tests
* Fix merge conflicts errors
* Remove superseeded comment
* Address grumbles: add newlines, add/remove spaces
2018-09-04 20:13:51 +02:00
Niklas Adolfsson
9f1e08663d
fix warning in secret-store test ( #9074 )
2018-07-09 16:48:15 +02:00
Svyatoslav Nikolsky
6f758bc7b1
SecretStore: service pack 1 ( #8435 )
...
* SecretStore: error unify initial commit
SecretStore: pass real error in error messages
SecretStore: is_internal_error -> Error::is_non_fatal
warnings
SecretStore: ConsensusTemporaryUnreachable
fix after merge
removed comments
removed comments
SecretStore: updated HTTP error responses
SecretStore: more ConsensusTemporaryUnreachable tests
fix after rebase
* SecretStore: unified SS contract config options && read
* SecretStore: service pack
SecretStore: service pack (continue)
* fixed grumbles
2018-06-14 10:01:52 +03:00
Niklas Adolfsson
98b7c07171
Update license header
and scripts
( #8666 )
...
* Update `add_license` script
* run script
* add `remove duplicate lines script` and run it
* Revert changes `English spaces`
* strip whitespaces
* Revert `GPL` in files with `apache/mit license`
* don't append `gpl license` in files with other lic
* Don't append `gpl header` in files with other lic.
* re-ran script
* include c and cpp files too
* remove duplicate header
* rebase nit
2018-06-04 10:19:50 +02:00
Toralf Wittner
e30839e85f
Consolidate crypto functionality in ethcore-crypto
. ( #8432 )
...
* Consolidate crypto functionality in `ethcore-crypto`.
- Move `ecdh`/`ecies` modules to `ethkey`.
- Refactor `ethcore-crypto` to use file per module.
- Replace `subtle` with `ethcore_crypto::is_equal`.
- Add `aes_gcm` module to `ethcore-crypto`.
* Rename `aes::{encrypt,decrypt,decrypt_cbc}` ...
... to `aes::{encrypt_128_ctr,decrypt_128_ctr,decrypt_128_cbc}`.
2018-05-05 11:02:33 +02:00
Svyatoslav Nikolsky
d1f5284fe6
SecretStore: merge two types of errors into single one + Error::is_non_fatal ( #8357 )
...
* SecretStore: error unify initial commit
SecretStore: pass real error in error messages
SecretStore: is_internal_error -> Error::is_non_fatal
warnings
SecretStore: ConsensusTemporaryUnreachable
fix after merge
removed comments
removed comments
SecretStore: updated HTTP error responses
SecretStore: more ConsensusTemporaryUnreachable tests
fix after rebase
* fixed grumbles
* use HashSet in tests
2018-05-01 15:02:14 +02:00
Toralf Wittner
2b05eb43a9
Add util/mem
to zero out memory on drop. ( #8356 )
...
* Add `util/mem` to zero out memory on drop.
* Remove nonsense.
* Remove `Into` impls for `Memzero`.
* Update ethereum-types and remove H256Mut.
2018-04-11 13:57:12 +02:00
Marek Kotewicz
bd7273061e
ethcrypto renamed to ethcore-crypto and moved to ethcore dir ( #8340 )
...
* ethcrypto renamed to ethcore-crypto and moved to ethcore dir
* fixed renaming
2018-04-10 13:56:56 +02:00
Svyatoslav Nikolsky
4f447c50b2
SecretStore: having <t+1 nodes with shares now does not abort ServersChangeSession ( #8151 )
2018-04-10 13:56:17 +02:00
Svyatoslav Nikolsky
0d75d01c84
SecretStore: get rid of engine.signer dependency ( #8173 )
...
* SecretStore: get rid of engine.signer dependency
* SecretStore: fixed self for transact_contract
* SecretStore: fixed pending requests + 1-of-1 sessions completion
* SecretStore: fixed completion signal in 1-of-1 case
* fixed test(s)
* removed obsolete TODO && redundant statement
* ok_or -> ok_or_else
2018-04-09 16:38:59 +02:00
Svyatoslav Nikolsky
ec96091369
SecretStore: generating and retrieving decryption keys via service contract ( #8029 )
...
* SecretStore: started document keys generation via contract
* fixed Cargo.lock
* SecretStore: doc key contract gen tests
* SecretStore: fixed log parsing
* SecretStore: flush
* SecretStore: secretstore_generateDocumentKey RPC
* SecretStore: return encrypted_key from secretstore_generateDocumentKey
* prepare to GenerateDocKey -> StoreDocKey
* SecretStore: ability to identify requester via Public/Address
* SecretStore: store author address instead of public in db
* flush
* SecretStore: flush
* SecretStore: fixed test
* SecretStore: flush
* SecretStore: flush
* SecretStore: flush
* SecretStore: flush
* SecretStore: start async generation session
* SecretStore: process StoreDocumentKey service tasks
* SecretStore: flush
* SecretStore: update service contact ABI
* SecretStore: flush
* SecretStore: flush
* SecretStore: fixed event
* SecretStore: flush
* SecretStore: fixed tests
* SecretStore: fix broadcast shadows decryption
* SecretStore: finally decryption via service contract works
* SecretStore: fix for updated contract
* SecretStore: restored pending requests reqding
* SecretStore: fixed some TODOs
* SecretStore: OnChainServiceContractAggregate
* SecretStore: different names for different contracts types
* SecretStore: updated contracts interfaces
* SecretStore: utilize aggregate service contract
* fixed compilation
* SecretStore: fixes for updated contract
* SecretStore: service fixes after testing
* fixed cli test compilation
* SecretStore: decryption_session_origin_is_known_to_all_initialized_nodes
* SecretStore: added new contract listener tests
* SecretStore: session_listener_works
* removed optional TODO
* SecretStore: fixed KeyServer shutdown
* fixed warn + grumble
* const durations
2018-04-03 16:54:34 +02:00
Ryan Leung
9c9ddaccec
use constant durations ( #8278 )
...
* use constant durations
* fix CI
* address comments
2018-04-02 10:47:56 +02:00
Svyatoslav Nikolsky
a91e562021
SecretStore: store key author address in db ( #7887 )
...
* SecretStore: ability to identify requester via Public/Address
* SecretStore: store author address instead of public in db
2018-03-20 03:03:51 +01:00
Svyatoslav Nikolsky
a6915778bb
SecretStore: ability to identify requester via Public/Address ( #7886 )
2018-03-19 06:42:40 +01:00
Toralf Wittner
fed4864939
secret_store: use ecies::encrypt
/ecies::decrypt
. ( #8125 )
2018-03-15 18:49:13 +03:00
Svyatoslav Nikolsky
0da6c7eb45
SecretStore: ECDSA session for cases when 2*t < N ( #7739 )
...
* SecretStore: ECDSA PoC
* SecretStore: fixed ECDSA serialization + cleanup
* removed unused param
* removed unused method
* removed debug unwrap
* SecretStore: 'limited' ECDSA session
* fix after merge
2018-03-01 09:59:21 +01:00
Svyatoslav Nikolsky
37bfcb737b
SecretStore: threshold ECDSA PoC ( #7615 )
...
* SecretStore: ECDSA PoC
* SecretStore: fixed ECDSA serialization + cleanup
* removed unused param
* removed unused method
* removed debug unwrap
* 1/x -> inv(x)
* SecretStore: merged fixes from ECDSA session branch
* once again 1/* -> inv(*)
* fixed grumbles
2018-02-15 11:12:51 +01:00
Svyatoslav Nikolsky
ebb92947a3
SecretStore: fixed test ( #7878 )
2018-02-14 10:49:56 +01:00
Svyatoslav Nikolsky
8579a56f71
SecretStore: 'broadcast' decryption session ( #7843 )
2018-02-12 18:05:33 +01:00
Svyatoslav Nikolsky
ebda6d3916
SecretStore: ignore removed authorities when running auto-migration ( #7674 )
2018-02-05 20:59:14 +01:00
Svyatoslav Nikolsky
10a95a5a22
remove obsolete file ( #7788 )
2018-02-02 08:55:44 +01:00
Svyatoslav Nikolsky
04b571b742
SecretStore: threshold decrease PoC ( #7562 )
2018-01-16 12:58:41 +01:00
Svyatoslav Nikolsky
73f5cc57be
fixed warning ( #7519 )
2018-01-10 19:56:02 +01:00
Marek Kotewicz
e95b093483
dissolve util ( #7460 )
...
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor finished
* removed obsolete util/src/lib.rs
* removed commented out code
2018-01-10 15:35:18 +03:00
Svyatoslav Nikolsky
d360074323
SecretStore: do not send init if session has finished/failed instantly ( #7397 )
2018-01-10 11:35:23 +01:00
Svyatoslav Nikolsky
b685b7fae3
SecretStore: tx retry pattern ( #7323 )
...
* SecretStore: auto migrate initial commit
* SecretStore: flush automigrate
* SecretStore: debug flush
* SecretStore: added migration to KeyServerSet contract
* SecretStore: flush automigrate
* SecretStore: flush before testing
* SecretStore: flush
* SecretStore: flush
* SecretStore: bunch of tests for simple ConnectionTrigger && KeyServerSet
* SecretStore: started work on TriggerWithMigration tests
* SecretStore: maintain_session tests
* SecretStore: updated some comments
* SecretStore pass migration_id to ServerSetChangeSession
* SecretStore: fixed lock scope
* SecretStore: fixed error response condition
* SecretStore: fixed ServerSetChange session auto-creation
* SecretStore: update active migration in connector
* removed commented code
* SecretStore: fixed tests compilation
* SecretStore: marked test-related unimplemented-s
* SecretStore: labeled all SS TODOs
* SecretStore: do not read auto-migration stuff when auto-migration is disabled + stripped KeyServerSet contract ABI
* SecretStore: ignore duplicated addresses in KeyServerSet
* fied compilation
* SecretStore: wait for N block confirmations before starting auto-migration
* SecretStore: more tests for migration delay
* SecretStore: clear current nodes set when KSS contract is uninstalled
* SecretStore: retry transaction interval
2018-01-10 11:33:45 +01:00
Marek Kotewicz
81d4187d14
Merge pull request #7331 from paritytech/secretstore_resurrect_error404
...
SecretStore: return error 404 when there's no key shares for given key on all nodes
2017-12-29 05:33:47 -04:00
Svyatoslav Nikolsky
c0e7abcc81
Merge branch 'master' into secretstore_kovan
2017-12-27 11:44:28 +03:00
NikVolf
516725abe4
ok_or -> ok_or_else
2017-12-21 16:50:58 +03:00
Svyatoslav Nikolsky
b10d567386
SecretStore: ClusterSession::wait_session helper
2017-12-20 19:11:48 +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
498a708df7
fixed warnings
2017-11-23 08:22:51 +03:00
Svyatoslav Nikolsky
ea9c8a174c
SecretStore: started adding tests for ServiceContractListener
2017-11-22 17:31:34 +03:00
Svyatoslav Nikolsky
a2c12ab13e
SecretStore: fixed warnings
2017-11-22 11:47:15 +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
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
Tomasz Drwięga
f7fa9f6e9d
Drop jsonrpc_core::Error
2017-11-14 12:17:48 +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