Commit Graph

38 Commits

Author SHA1 Message Date
Ivaylo Kirilov
9701a92dc9 on-chain-privacy-groups (#423)
Introduce on-chain privacy groups with add and remove functionality.

Signed-off-by: Ivaylo Kirilov <iikirilov@gmail.com>
2020-03-05 21:39:09 +00:00
Sally MacFarlane
9dfed5ab74 [BESU-80] TLS to orion (#324)
* enable SSL on connection to enclave

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2020-02-04 15:59:06 +10:00
Sally MacFarlane
59c9d3e72d [MINOR] americanize spelling (#322)
* americanize spelling

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2020-01-24 09:19:03 +10:00
pinges
b7a1422165 Fix AT failure because of additional field sent by Orion (#299)
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2020-01-09 18:00:36 +10:00
Danno Ferrin
e493b91742 Restore "FieldCanBeFinal" errorprone check (#287)
This was turned off a number of months ago because of long build times.
However it appears either because of code structure changes or fixed
errorprone that this finishes in a reasonable time now.

Code that violated this check is also fixed.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-01-02 10:27:54 -07:00
Danno Ferrin
dfad8bff78 Update Dependencies (#281)
Update dependencies to most current version
 - except picocli which is a major version update
Alphabetize dependencies

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-01-01 20:42:13 +13:00
Antoine Toulme
376ec111a3 Make sure to close Vert.x instances that are opened for testing (#280)
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2019-12-23 10:33:16 -07:00
Antony Denyer
f2a3c00d1b Stop processing blocks when enclave is down (#253)
only when you are trying to process a privacy marker transaction
Wrap errors with Enclave exception

Signed-off-by: Antony Denyer <email@antonydenyer.co.uk>

Co-authored-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
2019-12-20 12:55:58 +13:00
Jason Frame
991dcf9237 Enclave retrieve privacy group enclave method (#267)
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
2019-12-19 14:06:22 +10:00
Jason Frame
a0e87148e9 Privacy rpcs to go through privacy controller instead directly through Enclave (#243)
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
2019-12-19 10:47:41 +10:00
Trent Mohay
f9536e4576 Introduce a 1s connect timeout for Enclave comms (#249)
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
2019-12-13 10:32:27 +11:00
Trent Mohay
25451c27d5 Clean up vertx instances in Enclave tests (#229)
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
2019-11-29 16:34:05 +11:00
pinges
5f4bf595f4 Increase Enclave Request timeout to 5s (#228)
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
2019-11-29 15:07:40 +11:00
Trent Mohay
b0d6353aab Move Enclave from OkHttp to Vertx (#212)
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
2019-11-28 22:04:11 +11:00
pinges
3c1768eef7 Multi-Tenancy: Do not specify a public key anymore when requesting a … (#185)
* Multi-Tenancy: Do not specify a public key anymore when requesting a payload from Orion, so all private keys are tried to decrypt the encrypted payload.

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2019-11-14 13:43:00 +10:00
Joshua Fernandes
bac5c673d3 Adding a spdx license check gradle task (#30)
* adding in spdx-license-identifier & updated check for the same; removing license check from spotless

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>

* Change CheckSpdxHeader to a task.

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-09-20 14:59:57 +10:00
Joshua Fernandes
d6a2394e2d Migrating Pantheon to Besu (#1945)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-09-16 11:14:10 +10:00
Ratan Rai Sur
995ef1adba Ban junit assertions (#1939)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-09-13 17:37:51 +03:00
Ivaylo Kirilov
11e1575930 [PAN-2928] return null private transaction receipt instead of error (#1872)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-09-11 22:13:03 +10:00
Ivaylo Kirilov
c691f488e2 [PAN-2941] Refactor privacy acceptance tests (#1864)
* update web3j 4.5.0 + use pantheon module in favour of core
* remove custom eea/privacy rpc calls -> use web3j instead
* overhaul the conditions -> web3j does the polling for receipts for us
* re-define a PrivacyNode - it is an object that holds a PantheonNode and an OrionTestHarness
* do not start OrionTestHarness prematurely - calling PrivacyNode.start() will start an Orion node followed by it's accompanying Pantheon node
* stop and close resources properly -> clean-up removes the created temporary directories correctly

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-09-03 18:26:25 +10:00
Trent Mohay
95ebba2be7 Added eea_getTransactionCount Json Rpc (#1861)
Exposers a Json Rpc which allows "legacy" users to query for the
nonce of a given address, in a group of private users.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-08-26 13:08:50 +10:00
Josh Richardson
83f97f6e8d Removes FindPrivacyGroupResponse in favour of PrivacyGroup (#1709)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-17 18:33:55 +10:00
Puneetha Karamsetty
af1ca586c1 Add eea_findPrivacyGroup endpoint in Pantheon (#1635)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-15 14:34:42 +12:00
Puneetha Karamsetty
d80f4f2031 [PAN-2893] Rename privacyGroupId to createPrivacyGroupId (#1654)
* Rename privacyGroupId to createPrivacyGroupId
Also add test for eea_createPrivacyGroup

* Update the JsonRpcError list

* Update orion version

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-13 20:04:18 +10:00
Abdelhamid Bakhta
3c7e684c2b Enclave refactoring (#1684)
* Factorise metrics code for KeyValueStorage database

- introduce `MonitorableKeyValueStorage`
- factorise code
- remove metrics instanciation in `RocksDbKeyValueStorage` and `ColumnarRocksDbKeyValueStorage`

* Rename class

* refactor Enclave

- use final modifiers when appropriate to comply with Pantheon global policy
- use `assertj` assertions in tests
- don't use local variables when not necessary
- check exception message for `upCheck` method

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-12 20:18:16 +02:00
Ivaylo Kirilov
d2d338b797 [PAN-2825] eea send raw transaction with privacy group id (#1611)
* Add privacy group id to private transaction

* Update enclave send methods to accept privacy group id

* Update eea sendRawTransaction endpoint

* extract privacy group id from private transaction if present
* extract privateFor/privateFrom if privacy group id is not present

* Fix tests

* Change abstract class invocation to concrete class.

* Utility method to load enclave public key

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-08 12:45:28 -04:00
Puneetha Karamsetty
ec4270fb68 [PAN-2746] Add eea_createPrivacyGroup & eea_deletePrivacyGroup endpoint (#1560)
* Add eea_createPrivacyGroup endpoint

* Update orion version

* Fix the failing create privacy group test

* Add eea deletePrivacyGroup API in pantheon

* Update Orion to 1.1.0 release

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-06-27 12:56:44 -04:00
Puneetha Karamsetty
ebbf3df8f9 [PAN-2672] Return specific and useful error for enclave issues (#1455)
* Return specific error for enclave

* Serialize into error object instead of regex to find the error.

* Return EnclaveException for errors in Enclave

* Fix enclave error response after rebase

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-06-11 16:42:24 -04:00
Ivaylo Kirilov
fc4f9917b7 [PAN-2647] Validate Private Transaction nonce before submitting to Transaction Pool (#1449)
* Validate private transaction nonce before submitting to Transaction Pool
* Update tests for Incorrect Nonce and Nonce Too Low exceptions
* Differentiate Incorrect Nonce and Nonce Too Low error messages
* Fixed flaky tests
* Change log level from Info to Debug

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-05-23 13:52:49 -04:00
Abdelhamid Bakhta
8ed882a517 Update Enclave executePost method (#1317)
Use class field rather than creating new instance for each call.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-04-23 21:32:39 +12:00
Antony Denyer
0ce2d49aa5 [PRIV-41] Refactor PrivacyParameters config to use builder pattern (#1226)
* [PRIV-41] Use metrics system for private state db

- Use PrivacyParametersBuilder to build PrivacyParameters
- refactor PrivacyParameters to expose default options
- refactor test builders to use PrivacyParameters.DEFAULT
- Use URI in Enclave

* Fix: enclave tests from bad merge

* Fix privacy acceptance tests after db configuration changes

* Switch to use nested class for PrivacyParametersBuilder

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-04-09 09:28:29 -06:00
Puneetha Karamsetty
7599f04114 [PRIV-31] Add private cluster acceptance tests (#1211)
* Using privacy group id for contract name
* Add private cluster acceptance tests

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-04-05 11:18:07 +13:00
Ivaylo Kirilov
c2b48e4ff6 [PRIV] Orion 0.1.2 (#1168)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-03-28 12:43:01 +13:00
Puneetha Karamsetty
8b5c197883 [PRIV] Get Internal logs and output (#1022)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-03-14 09:51:38 +13:00
CJ Hare
5da4fac02f Integration Test implementation dependency for non-IntelliJ IDE (#978)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-02-27 10:13:23 +10:00
Ivaylo Kirilov
582454581a [PRIV] Complete Private Transaction Processor (#938)
* Remove entries() in KeyValueStorage

* Implement Private Transaction Processor

* Implement PrivateTransactionReceipt

* Refactor privacy parameter injection

* Disable ether for private transaction

* Implement AcceptanceTest

* Fix PrivateWorldState injection

* Add unimplemented private transaction type

- https://entethalliance.github.io/client-spec/spec.html#sec-extensions-json-rpc

* Change Private Transaction RLP

* Change Private Transaction RLP for acceptanceTest

* Fix copyright year

* Fix build

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-02-26 15:30:11 +13:00
Lucas Saldanha
7fa7998503 Removing Orion snapshot depedency (#933)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-02-21 14:11:34 +13:00
Vinicius Stevam
cd818814ff [PRIV] Generify orion to enclave (#745)
* Generify orion to enclave

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-02-06 10:00:00 +10:00