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

[PAN-2910] Eea get private transaction fix #1707

Merged

Conversation

iikirilov
Copy link
Contributor

@iikirilov iikirilov commented Jul 15, 2019

PR description

The response of the ee_getPrivateTransaction endpoint should return numeric values encoded in hex and enclave public keys encoded in base64. It should also return the private transaction with the privateFrom/privateFor or privateFrom/privacyGroupId combination depending on how the transaction was sent.

This PR also extends to fix the way transactions are sent with support for the following combinations:

  • privateFrom and privateFor
  • privateFrom and privacyGroupId
  • privacyGroupId without privateFrom - the privateFrom field is populated from the enclave key used in the command line arguments to start up Pantheon.

This PR also extends from #1667 to handle PMT payload consistently

  • the privacy marker transaction payload is required in base64 for orion receive requests

Fixed Issue(s)

PAN-2910

*encode numbers in hex
*represent enclave keys in base64
Support for the following combinations
*privateFrom and privateFor
*privateFrom and privacyGroupId
*privacyGroupId without privateFrom - the privateFrom field is populated from the enclave key used in the command line arguments to start up Pantheon.
*the privacy marker transaction payload is required in base64 for orion receive requests
+ "6c393153476f3dac4b6f32625671442b6e4e6c4e594c35454537793349644f"
+ "6e766966746a69697a706a52742b4854754642733d8a726573747269637465"
+ "64";
"0xf8ef800182520894095e7baea6a6c7c4c2dfeb977efac326af552d87a0f"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test vectors have changed here because enclave keys encoded correctly as 32 byte hex rather than 44 byte UTF_8 representation of base64

@iikirilov iikirilov force-pushed the eeaGetPrivateTransaction_fix branch from 0cceaa2 to 590f84a Compare July 15, 2019 22:00
@lucassaldanha lucassaldanha merged commit 210474d into PegaSysEng:master Jul 16, 2019
@iikirilov iikirilov deleted the eeaGetPrivateTransaction_fix branch July 16, 2019 05:54
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