Updated 2020-02-25

Private transactions

Private transactions have additional attributes to public Ethereum transactions:

  • privateFrom - The Orion public key of the transaction sender
  • privateFor - The Orion public keys of the transaction recipients, or
  • privacyGroupId - The privacy group to receive the transaction
  • restriction - Whether the private transaction is restricted or unrestricted. In:
  • restricted private transactions, only the nodes participating in the transaction receive and store the payload of the private transaction.
  • unrestricted private transactions, all nodes in the network receive the payload of the private transaction, but only the nodes participating in the transaction can read the transaction.

    Important

    Besu implements restricted private transactions only.

For more information about creating and sending private transactions, see the How To documentation.

Besu and Orion keys

Besu and Orion nodes both have public/private key pairs identifying them. A Besu node sending a private transaction to an Orion node signs the transaction with the Besu node private key. The privateFrom and privateFor attributes specified in the RLP-encoded transaction string for eea_sendRawTransaction are the public keys of the Orion nodes sending and receiving the transaction.

Important

The mapping of Besu node addresses to Orion node public keys is off-chain. That is, the sender of a private transaction must know the Orion node public key of the recipient.