Skip to content
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

Merged
merged 5 commits into from
Nov 14, 2019

Conversation

pinges
Copy link
Contributor

@pinges pinges commented Nov 13, 2019

…payload from Orion, so all private keys are tried to decrypt the encrypted payload.

Signed-off-by: Stefan Pingel stefan.pingel@consensys.net

  • update to Orion 1.5.0-SNAPSHOT

pinges and others added 3 commits November 13, 2019 17:05
…payload from Orion, so all private keys are tried to decrypt the encrypted payload.

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
@@ -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) {
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

Copy link
Member

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?

Copy link
Contributor Author

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'
Copy link
Member

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)

Copy link
Member

@usmansaleem usmansaleem left a 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>
Copy link
Member

@usmansaleem usmansaleem left a 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.

@usmansaleem usmansaleem merged commit 3c1768e into hyperledger:master Nov 14, 2019
@pinges pinges deleted the multiTenancy1 branch April 1, 2020 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants