-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Tenancy: Do not specify a public key anymore when requesting a … #185
Conversation
…payload from Orion, so all private keys are tried to decrypt the encrypted payload. Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
...va/org/hyperledger/besu/ethereum/mainnet/precompiles/privacy/PrivacyPrecompiledContract.java
Outdated
Show resolved
Hide resolved
@@ -94,8 +94,7 @@ public String sendToOrion(final PrivateTransaction privateTransaction) throws Ex | |||
} | |||
} | |||
|
|||
public String getPrivacyGroup(final String key, final PrivateTransaction privateTransaction) | |||
throws Exception { | |||
public String getPrivacyGroup(final String key, final PrivateTransaction privateTransaction) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you took Exception
out? Is this method only throwing runtime exceptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
later on we are catching a blanket Exception
, should we change that to RuntimeException
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -61,7 +61,7 @@ dependencyManagement { | |||
dependency 'org.apache.tuweni:tuweni-crypto:0.9.0' | |||
dependency 'org.apache.tuweni:tuweni-toml:0.9.0' | |||
|
|||
dependency 'net.consensys:orion:1.3.2' | |||
dependency 'net.consensys:orion:1.5.0-SNAPSHOT' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we should bind to a release version of Orion from Besu. Otherwise, it will be highly prone to break (I think)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
…payload from Orion, so all private keys are tried to decrypt the encrypted payload.
Signed-off-by: Stefan Pingel stefan.pingel@consensys.net