Using onchain privacy groups
Onchain privacy groups are an early access feature in v1.4. Do not use in production networks.
The onchain privacy group interfaces may change between v1.4 and v1.5. There may not be an upgrade path from onchain privacy groups created using v1.4 to enable use of onchain privacy group functionality in future versions.
We do not recommend creating onchain privacy groups in a chain with existing offchain privacy groups.
Enabling onchain privacy groups
command line option to enable onchain privacy groups.
When onchain privacy groups are enabled, the
priv_findPrivacyGroup methods for
offchain privacy groups are disabled.
Simple onchain privacy group example
example/keys.jsfile to match your network configuration.
This script creates the onchain privacy group with two members.
findPrivacyGroupfinds and displays the created privacy group.
The Orion logs for Orion 1 and Orion 2 displays
PrivacyGroupNotFound errors. This is expected
behavior because private transactions check offchain and onchain to find the privacy group for
a private transaction.
Adding and removing members
When adding a member, Besu pushes all existing group transactions to the new member and processes them. If there are a large number of existing transactions, adding the member might take some time.