Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2825] eea send raw transaction with privacy group id #1611

Conversation

iikirilov
Copy link
Contributor

@iikirilov iikirilov commented Jun 26, 2019

PR description

Allows to send private transaction with privacy group id instead of privateFor/privateFrom

Fixed Issue(s)

PAN-2825

@iikirilov iikirilov force-pushed the feature/eea_sendRawTransaction_with_privacyGroupId branch from 85900f1 to 99d3f2d Compare June 26, 2019 15:11
@@ -50,6 +50,14 @@
+ "6e766966746a69697a706a52742b4854754642733d8a726573747269637465"
+ "64";

private static final String VALID_PRIVATE_TRANSACTION_RLP_PRIVACY_GROUP =
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be generated so that it is clear how this is built?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No - because I am testing here that the generation will produce these fixed values. If I generate these values and test if the generator produces the generated values (which it obviously will) I am not really testing anything. If someone messes with the generator then we will not catch the error :)

@iikirilov iikirilov force-pushed the feature/eea_sendRawTransaction_with_privacyGroupId branch 9 times, most recently from a9444dc to 9007712 Compare July 2, 2019 08:01
Copy link
Contributor

@ekellstrand ekellstrand left a comment

Choose a reason for hiding this comment

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

LGTM

@iikirilov iikirilov force-pushed the feature/eea_sendRawTransaction_with_privacyGroupId branch from 9007712 to f8f8d00 Compare July 4, 2019 15:59
iikirilov added 5 commits July 8, 2019 10:13
* extract privacy group id from private transaction if present
* extract privateFor/privateFrom if privacy group id is not present
* Change abstract class invocation to concrete class.
@iikirilov iikirilov force-pushed the feature/eea_sendRawTransaction_with_privacyGroupId branch from f8f8d00 to 2782fb7 Compare July 8, 2019 09:13
@ekellstrand ekellstrand merged commit 5001528 into PegaSysEng:master Jul 8, 2019
@iikirilov iikirilov deleted the feature/eea_sendRawTransaction_with_privacyGroupId branch August 16, 2019 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants