80 Commits

Author SHA1 Message Date
Simon Dudley
789542f76d Pull in Consensys/tuweni v2.7.0 (#8330)
This replaces io.tmio/tuweni with the Consensys fork.

Also Includes:
- reduce check argument args allocations - https://github.com/Consensys/tuweni/pull/10
which should reduce Integer and int[] and therefore gc pressure

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
2025-03-17 19:42:25 +10:00
Sally MacFarlane
c318b6a5ff [TESTING] Remove dependency on test containers (#7790)
* removed dep for testcontainers

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-10-29 13:33:46 +10:00
Sally MacFarlane
9d689b9401 remove integration tests related to privacy (#7645)
* remove integration tests related to privacy

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-09-21 20:45:09 +00:00
Usman Saleem
4c3f4b37a2 build - Update license headers formatting (#7017)
Fix headers formatting under: enclave/ evm/ nat/ pki/ util/
---------

Signed-off-by: Usman Saleem <usman@usmans.info>
2024-05-01 00:36:34 +00:00
Danno Ferrin
001080a72b Upgrade spotless to 1.22.0 (#6898)
Upgrade spotless to 1.22.0 and reformat.
This is required for Java21 support.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2024-04-09 04:12:56 +00:00
Usman Saleem
e954537fcc build - Refactor Besu custom error prone dependency (#6692)
Move Besu custom error-prone checks into its own repository and use it as an external dependency. This allows to move to a newer version of Google errorprone checks as well while cleaning up build.gradle file.

Key changes resulted due to this change:

* String toLowerCase and toUpperCase to use Locale.ROOT as argument
* Use interface such as List,Map or NavigatableMap instead of concrete class where appropriate.
* Simplify StringBuilder to plain String
* Suppress warnings where appropriate.
-----
Signed-off-by: Usman Saleem <usman@usmans.info>
2024-03-27 06:17:40 +10:00
Antoine Toulme
901661cb4f Update tuweni2.4.2 (#5684)
* Revert "Revert "Update Tuweni to 2.4.1 (#5513)" (#5585)"

This reverts commit 6111e1bbc3.

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* update Tuweni to 2.4.2

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

---------

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2023-07-11 22:26:32 -07:00
Danno Ferrin
4b3853ff1f Upgrade BouncyCastle libraries (#5675)
Upgrade bouncy castle to v1.75.  This involved a change in maven
coordinates for other modules.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-07-05 13:27:52 -05:00
Danno Ferrin
fcdb20296a Update evmtool graalvm build (#5639)
* add new class to reflection config
* move CLI output to be system-err oriented
* make logger in evmtool nop
* exclude some problematic jars from compilation
  - mixed versions of bouncy castle
  - netty initializations of log4j
* Standardize JSON ObjectMapper Construction
* Add some manual mappings
* Directly instantiate crypto algorithms where appropriate

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
2023-06-27 23:46:15 -06:00
Sally MacFarlane
db173ebd98 services - migrate to junit 5 (#5613)
* services to junit5

* removed some junit4 engine imports

* updated some plugins test since these extend from testutil KV storage

* one more form of EPL v2

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-06-21 09:12:51 +10:00
Nischal Sharma
54500740b6 junit4 to junit5 (#5598)
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
2023-06-15 09:08:39 +10:00
Sally MacFarlane
6111e1bbc3 Revert "Update Tuweni to 2.4.1 (#5513)" (#5585)
This reverts commit b96418143c.

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-06-13 13:12:23 +10:00
Antoine Toulme
b96418143c Update Tuweni to 2.4.1 (#5513)
* update to 2.4.1

* update use of DNS daemon with Vertx

* fix issue with Bytes.repeat

* update antlr version

* fix dns tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

---------

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-06-09 12:31:20 +10:00
Sally MacFarlane
067a263374 [23.4] Remove GoQuorum privacy (#5303)
* removed separate decoding logic

* run non-mainnet ATs to make sure

* remove goQuorum flag from everywhere

* remove GOQUORUM api group

* remove GoQuorum enclave, privacy params, RPCs and other related config

* removed Goquorum related error codes, rpcMethod codes, privateBloom

* removed v from transaction

* removed private GoQuorum storage provider

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-04-14 06:41:57 +10:00
Danno Ferrin
ebbc0df773 Reduce EVM module dependencies (#5285)
Refactor crypto, datatypes, and plugin-api to reduce plugin APIs in the EVM.

Split crypto into crypto services and crypto algorithms
Reverse the dependency between datatyps and plugin-api.
Remove plugin Hash and Address types (use datatypes)
Move PublicKey and Quantity into datatypes.

Lots of changes to imports and build files, and some fromPlugin calls removed.

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@shemnon.com>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
2023-03-30 18:34:37 -05:00
Usman Saleem
9eb32836b7 Fix javadocs to allow build to pass in JDK 17 (#4834)
- Added missing javadocs so that javadoc doclint passes against JDK 17 (invoke by Besu gradle build).
- Exclude following packages from javadoc lint:
org.hyperledger.besu.privacy.contracts.generated
org.hyperledger.besu.tests.acceptance.*
- Temporarily exclude ethereum and evm submodule for doc lint checks.
- Run the javadoc task using GitHub actions (use Java 17) to report any javadoc errors during the PR builds
- Updating plugin-api build.gradle with new hash as javadoc comments caused it to change

Signed-off-by: Usman Saleem <usman@usmans.info>
2023-01-18 22:51:00 +10:00
Danno Ferrin
9dbf12058a Re-enable integration tests (#4871)
When Integration tests were migrated to JUnit 5 the gradle configuration was not added.
Fix various tests that had broken in the meantime:
 - NPEs when EnclaveEncryptorType was introduced
 - Account for new future nonce restrictions in the txpool

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
2023-01-03 18:30:28 +10:00
Miguel Angel Rojo
95d9626b0e Enclave public key length constraint removed for private transactions (#4086)
* removed constraint with the length of the privacy public key

* refactor to include tessera ec encryptor

* added EC snippet to the tessera json config, still need to replace base64string from web3j

* acceptance tests working after modifying the web3j library to allow secp256r1 keys

* using NACL encryptor by default

* using web3j v4.9.4 and web3j-quorum v4.9.0

Signed-off-by: Miguel Rojo <miguelangel.rojofernandez@mastercard.com>

Co-authored-by: Antony Denyer <git@antonydenyer.co.uk>
2022-08-08 20:49:58 +10:00
Diego López León
eb5e604bcd Migrate integrationTests to Junit5 (#3815)
Signed-off-by: Diego López León <dieguitoll@gmail.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2022-05-13 07:44:46 +10:00
Danno Ferrin
b4027d6e39 Use JUnit 5 for unit test execution (#3620)
Change the unit test execution to use the Junit5 JUnitPlatform. This
allows for a mix of junit 4 and junit 5 tests and for a gradual
migration to junit 5 instead of a big bang. One class depended on
junit 4 exceptions and was updated. Two tests depending on 
native libraries fail gracefully on mac (and only mac).

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2022-04-02 00:34:48 +10:00
Diego López León
ed1329cf84 Introduce SLF4J for logging (#3285)
* Bump SLF4J version

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Replace log4j2 API with SLF4j API

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Replace usage of LogManager#getFormatterLogger

This is for keeping compatibility with SLF4J. If neccesary, a specific formatter can be created for the RlpBlockImporter class

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Unset the default logging value for the retesteth

This is because it's not possible to resolve the root logger level into a Log4J2 field

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Prevent creation of Logger context outside SLF4J

org.hyperledger.besu.cli.BesuCommand#setAllLevels was taken from
https://github.com/apache/logging-log4j2/blob/rel%2F2.17.1/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Configurator.java#L309

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Add FATAL level deprecation message

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* [Sonar] Fix java:S2139

Exceptions should be either logged or rethrown but not both

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* [Sonar] Fix java:S3457

Printf-style format strings should be used correctly

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Add changelog

Signed-off-by: Diego López León <dieguitoll@gmail.com>
2022-01-25 20:14:54 -03:00
Diego López León
7daa4f871f Vert.x upgrade (with tests) (#3135)
* compile issues sorted, some tests failing

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* closing runnerBehind closes the vertx shared with runnerAhead, which now throws an exception

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* checkpoint when 4/5 websocket login tests pass

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* exp moved to attribute from principal

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* fixed more tests

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* fixed more tests

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* exception handling test improvement

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* exception handling test improvement

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* static renamed

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* We want old implementation of the host()

Newly vertex handles the forward headers and modifies host(). In the
process vert.x loses track of port from Host header in case the port was
not a string.

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

* adding dependency on jackson-databind for tests

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

* making sure changes are spotless

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

* Dealing with regression

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

* fixing last failing vert.x test hopefully

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

* removed commented out code

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* reverts debugging adjustment

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* removed commented out code

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* minor whitespace cleanup

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* (internal) Refactor 'onchain' to 'flexible' where applicable (#3075)

* CLI option name change

Signed-off-by: Frank Li <b439988l@gmail.com>

* refactor privacyparameters.java and add deprecation warning

Signed-off-by: Frank Li <b439988l@gmail.com>

* more refactoring

Signed-off-by: Frank Li <b439988l@gmail.com>

* add to everything.toml

Signed-off-by: Frank Li <b439988l@gmail.com>

* bugs

Signed-off-by: Frank Li <b439988l@gmail.com>

* more missing variable names

Signed-off-by: Frank Li <b439988l@gmail.com>

* more classes

Signed-off-by: Frank Li <b439988l@gmail.com>

* more classes

Signed-off-by: Frank Li <b439988l@gmail.com>

* fix compile error

Signed-off-by: Frank Li <b439988l@gmail.com>

* add new test to invalidate passing both commands

Signed-off-by: Frank Li <b439988l@gmail.com>

* more refactoring + more tests

Signed-off-by: Frank Li <b439988l@gmail.com>

* new batch

Signed-off-by: Frank Li <b439988l@gmail.com>

* final batch?

Signed-off-by: Frank Li <b439988l@gmail.com>

* failing unit test

Signed-off-by: Frank Li <b439988l@gmail.com>

* revert incorrect refactoring back to onchain

Signed-off-by: Frank Li <b439988l@gmail.com>

* fix unit test

Signed-off-by: Frank Li <b439988l@gmail.com>

* comment

Signed-off-by: Frank Li <b439988l@gmail.com>

* comment

Signed-off-by: Frank Li <b439988l@gmail.com>

* support both privx methods

Signed-off-by: Frank Li <b439988l@gmail.com>

* add to changelog

Signed-off-by: Frank Li <b439988l@gmail.com>

* address comment

Signed-off-by: Frank Li <b439988l@gmail.com>

* add plugin privacy

Signed-off-by: Frank Li <b439988l@gmail.com>
Signed-off-by: Justin Florentine <justin+github@florentine.us>

* checkpoint when 4/5 websocket login tests pass

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* trying to figure out how to decouple this test

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* spotless

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* removes Orion from integration test

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* spotless

Signed-off-by: Justin Florentine <justin+github@florentine.us>

* Add jackson dependency to merge module

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Migrate JWTAuthOptions creations for public keys

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Check http client response status

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Replace Orian with Tessera in tests

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Change Tessera expected error messages in tests

Signed-off-by: Diego López León <dieguitoll@gmail.com>

* Change executor of integrationTests to allow spanning Docker processes

Signed-off-by: Diego López León <dieguitoll@gmail.com>

Co-authored-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Co-authored-by: Frank Li <39414003+frankisawesome@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-12-22 08:52:32 +10:00
Frank Li
183cdaf3e3 (internal) Refactor 'onchain' to 'flexible' where applicable (#3075)
* CLI option name change

Signed-off-by: Frank Li <b439988l@gmail.com>

* refactor privacyparameters.java and add deprecation warning

Signed-off-by: Frank Li <b439988l@gmail.com>

* more refactoring

Signed-off-by: Frank Li <b439988l@gmail.com>

* add to everything.toml

Signed-off-by: Frank Li <b439988l@gmail.com>

* bugs

Signed-off-by: Frank Li <b439988l@gmail.com>

* more missing variable names

Signed-off-by: Frank Li <b439988l@gmail.com>

* more classes

Signed-off-by: Frank Li <b439988l@gmail.com>

* more classes

Signed-off-by: Frank Li <b439988l@gmail.com>

* fix compile error

Signed-off-by: Frank Li <b439988l@gmail.com>

* add new test to invalidate passing both commands

Signed-off-by: Frank Li <b439988l@gmail.com>

* more refactoring + more tests

Signed-off-by: Frank Li <b439988l@gmail.com>

* new batch

Signed-off-by: Frank Li <b439988l@gmail.com>

* final batch?

Signed-off-by: Frank Li <b439988l@gmail.com>

* failing unit test

Signed-off-by: Frank Li <b439988l@gmail.com>

* revert incorrect refactoring back to onchain

Signed-off-by: Frank Li <b439988l@gmail.com>

* fix unit test

Signed-off-by: Frank Li <b439988l@gmail.com>

* comment

Signed-off-by: Frank Li <b439988l@gmail.com>

* comment

Signed-off-by: Frank Li <b439988l@gmail.com>

* support both privx methods

Signed-off-by: Frank Li <b439988l@gmail.com>

* add to changelog

Signed-off-by: Frank Li <b439988l@gmail.com>

* address comment

Signed-off-by: Frank Li <b439988l@gmail.com>

* add plugin privacy

Signed-off-by: Frank Li <b439988l@gmail.com>
2021-11-25 16:24:27 +10:00
Sally MacFarlane
c0b1316d7b deprecation: replace calls to isEqualToComparingFieldByField (#3042)
* replace isEqualToComparingFieldByField with usingRecursiveComparison().isEqualTo

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* isEqualTo()

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* revert ibft and qbft tests back to compareFieldByField

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* revert tests back to compareFieldByField

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-11-15 20:20:59 +10:00
Stefan Pingel
4d72369469 Refactor privacy controller (#2971)
* refactor of PrivacyController

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2021-11-11 13:29:46 +10:00
Antoine Toulme
11f5cfb022 Upgrade to Apache Tuweni 2.0 (#2376)
* Upgrade to Apache Tuweni 2.0

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Remove intermediate repository

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Remove all occurrences of toBytes

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Migrate to tuweni-bytes

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* add changelog

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* correct reference tests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Initial API changes

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* more changes

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Change APIs for VM ops

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Use constant UInt256.ONE

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Optimize a bit address <> word transformation

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* spotless

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2021-07-17 00:15:27 +02:00
mark-terry
3e86423457 Tessera Orion-mode privacy ATs (#2166)
* Refactored privacy ATs to use both Orion and Tessera.

Signed-off-by: Mark Terry <mark.terry@consensys.net>
2021-06-02 10:34:28 +10:00
Stefan Pingel
4e63f3c210 fix selection of receive RPC (#2197)
* fix selection of receive RPC

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2021-04-28 14:08:25 +10:00
Stefan Pingel
8267f90fdd fix GoQuorum privacy (#2184)
* fix goQuorum privacy

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2021-04-27 10:41:29 +10:00
Sally MacFarlane
1de067b473 add JSON-RPC method to call /storeraw on GoQuorum enclave (#1859)
* added GoQuorumStoreRawPrivateTransaction that can send a payload to Tessera for storing

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-02-08 10:36:11 +10:00
Stefan Pingel
14789af5e5 Go quorum privacy configuration (#1718)
* add goquorum privacy configuration

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2020-12-17 13:03:42 +10:00
Stefan Pingel
44c4d75016 add sendSignedTransaction method to QuorumEnclave (#1642)
* add sendSignedTransaction method to QuorumEnclave

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2020-12-02 09:48:00 +10:00
Stefan Pingel
a4a8723b69 Go quorum enclave (#1599)
* add enclave for goQuorum privacy using Tessera

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2020-11-25 09:17:10 +10:00
Antoine Toulme
b9364ed243 Upgrade to Apache Tuweni 1.2.0 (#1493)
* Upgrade to Apache Tuweni 1.2.0

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* no jsr305

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>

Co-authored-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-11-05 15:40:42 -08:00
Sally MacFarlane
fcd365bdec made findPrivacyGroup calls async (#1346)
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2020-08-31 10:22:20 +10:00
Lucas Saldanha
c5025d86eb Add strict check for privateFrom in private txs (#976)
* Add strict check for privateFrom in private txs

Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
2020-07-08 18:29:47 +12:00
Sally MacFarlane
d101d5d272 Typo in test name (#1159)
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2020-06-29 15:07:46 +10:00
Sally MacFarlane
f229d5a190 whitelist -> allowlist and on-chain -> onchain (#1131)
* whitelist -> allowlist and on-chain -> onchain

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2020-06-23 15:26:00 +10:00
Danno Ferrin
256e5c914d Errorprone version upgrade (#1096)
Upgrade to ErrorProne 2.4.0

* public constructors on abstract classes are removed
* Javadoc must have meaningfull documentation
* lambdas should not be variables
* Added to the list of confusing inner class names (Entry and Type)
* no assert keyword in tests
* Obsolete JDK classes produce errors now

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-06-17 10:34:56 -06:00
Lucas Saldanha
9f2f3b9fb5 Initial support for multi-tenancy with flexible privacy groups (#1032)
* Add onchain privacy group multi-tenancy support to priv_getPrivateTx and priv_getPrivRcpt

Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
2020-06-09 21:10:41 +12:00
Danno Ferrin
a4143dc410 Check to see if vertx response is closed before responding (#613)
Occasionally the other side of an HTTP connection will drop the
connection before we are done processing.  This results in a harmless
but annoying exception showing up in the log.  If we check before we
write we won't get that exception.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-03-31 14:09:07 -06:00
Usman Saleem
98ec5777dd Fix privacy enclave keystore password file reading eol issue (#554)
-- Read password from first line instead of reading whole file as bytes
 -- Raise appropriate exceptions if file is empty or only contains eol as first line.

fixes #525

Signed-off-by: Usman Saleem <usman@usmans.info>
2020-03-23 13:54:31 +10:00
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