-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added content on Pantheon-extended privacy (#1771)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
- Loading branch information
1 parent
1d59f90
commit cbf5966
Showing
6 changed files
with
90 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
description: Methods for accessing and managing private transactions and privacy groups | ||
<!--- END of page meta data --> | ||
|
||
# Accessing Private and Privacy Marker Transactions | ||
|
||
A private transaction creates a [Privacy Marker Transaction](../Explanation/Private-Transaction-Processing.md) in addition to the private transaction itself. | ||
Use [`eth_getTransactionReceipt`](../../Reference/Pantheon-API-Methods.md#eth_gettransactionreceipt) to | ||
get the transaction receipt for the Privacy Maker Transaction and [`eea_getTransactionReceipt`](../../Reference/Pantheon-API-Methods.md#eea_gettransactionreceipt) | ||
to get the transaction receipt for the private transaction. | ||
|
||
Use [`eth_getTransactionByHash`](../../Reference/Pantheon-API-Methods.md#eth_gettransactionbyhash) to | ||
get the Privacy Marker Transaction with the transaction hash returned when submitting the private transaction. | ||
Use [`priv_getPrivateTransaction`](../../Reference/Pantheon-API-Methods.md#priv_getprivatetransaction) | ||
to get the private transaction with the `input` value from the Privacy Marker Transaction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
description: Creating and manage privacy groups | ||
<!--- END of page meta data --> | ||
|
||
Pantheon-extended privacy provides JSON-RPC API methods for creating and managing privacy groups: | ||
|
||
* [`priv_createPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_createprivacygroup) | ||
* [`priv_findPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_findprivacygroup) | ||
* [`priv_deletePrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_deleteprivacygroup) | ||
|
||
!!! tip | ||
[EEA-compliant privacy groups](../Explanation/Privacy-Groups.md) can be found and deleted using | ||
[`priv_findPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_findprivacygroup) | ||
and [`priv_deletePrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_deleteprivacygroup) but | ||
future functionality to update group membership will only be available for privacy groups | ||
created using [`priv_createPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_createprivacygroup). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
description: Pantheon-extended privacy | ||
<!--- END of page meta data --> | ||
|
||
# Using Pantheon-extended Privacy | ||
|
||
Pantheon provides an extended implementation of privacy by allowing a [privacy | ||
group to be created for a set of participants](../Explanation/Privacy-Groups.md). The privacy group ID | ||
must be specified when sending private transactions. | ||
|
||
Using the [`--rpc-http-api`](../../Reference/Pantheon-CLI-Syntax.md#rpc-http-api) or [`--rpc-ws-api`](../../Reference/Pantheon-CLI-Syntax.md#rpc-ws-api) | ||
command line options enable: | ||
|
||
* [`EEA` API methods](../../Reference/Pantheon-API-Methods.md#eea-methods) | ||
* [`PRIV` API methods](../../Reference/Pantheon-API-Methods.md#priv-methods) | ||
|
||
Use [`priv_createPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_createprivacygroup) to | ||
create the privacy group containing the recipients of the private transaction. | ||
|
||
Specify `privacyGroupId` when creating the signed transaction passed as an input parameter to [`eea_sendRawTransaction`](../../Reference/Pantheon-API-Methods.md#eea_sendrawtransaction) | ||
to create an EEA-compliant private transaction. | ||
|
||
!!! note | ||
Support for specifying `privacyGroupId` when using `eea_sendTransaction` with EthSigner will be available in | ||
a future EthSigner release. | ||
|
||
## Privacy Group Type | ||
|
||
Privacy groups created using [`priv_createPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_createprivacygroup) | ||
are identified as type `PANTHEON` when returned by [`priv_findPrivacyGroup`](../../Reference/Pantheon-API-Methods.md#priv_findprivacygroup). | ||
|
||
!!! example | ||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": [ | ||
{ | ||
"privacyGroupId": "GpK3ErNO0xF27T0sevgkJ3+4qk9Z+E3HtXYxcKIBKX8=", | ||
"name": "Group B", | ||
"description": "Description of Group B", | ||
"type": "PANTHEON", | ||
"members": [ | ||
"negmDcN2P4ODpqn/6WkJ02zT/0w0bjhGpkZ8UP6vARk=", | ||
"g59BmTeJIn7HIcnq8VQWgyh/pDbvbt2eyP0Ii60aDDw=" | ||
] | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters