Skip to content
You are reading Hyperledger Besu development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Date of last update: September 14, 2022

Use Besu-extended privacy

Warning

Orion features have been merged into Tessera! Read our Orion to Tessera migration guide and about all the new Tessera features.

Hyperledger Besu provides an extended implementation of privacy allowing you to create a privacy group for a set of participants. You must specify the privacy group ID when sending private transactions.

To enable the PRIV API methods, use the --rpc-http-api or --rpc-ws-api command line options.

To create the privacy group containing the recipients of a private transaction, use priv_createPrivacyGroup.

To create an EEA-compliant private transaction, specify privacyGroupId when creating the signed transaction passed as an input parameter to eea_sendRawTransaction.

Privacy group type

Privacy groups created using priv_createPrivacyGroup have a BESU privacy group type when returned by priv_findPrivacyGroup.

Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "privacyGroupId": "GpK3ErNO0xF27T0sevgkJ3+4qk9Z+E3HtXYxcKIBKX8=",
      "name": "Group B",
      "description": "Description of Group B",
      "type": "BESU",
      "members": [
        "negmDcN2P4ODpqn/6WkJ02zT/0w0bjhGpkZ8UP6vARk=",
        "g59BmTeJIn7HIcnq8VQWgyh/pDbvbt2eyP0Ii60aDDw="
      ]
    }
  ]
}