foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Support sending of private transactions

Open frank-lim-partior opened this issue 2 years ago • 2 comments

Component

Cast

Describe the feature you would like

I'll like to use the following parameters in the cast send API, on top of parameters like value, nonce:

  • privateFrom
  • privateFor
  • privacyGroupId

It'll be great to be able to use these extra options.

Additional context

This is used in both HyperLedger Besu and GoQuorum. https://besu.hyperledger.org/en/stable/private-networks/concepts/privacy/private-transactions/

frank-lim-partior avatar Aug 25 '22 09:08 frank-lim-partior

It would be great if these options could be added to forge script as well.

frank-lim-partior avatar Aug 25 '22 12:08 frank-lim-partior

this would mean we'd need to add a serde flattened other: HashMap to the Transaction type, similar to what we did with for Block

https://github.com/gakonst/ethers-rs/blob/b71e6ad00b2290e103342a2c7fe20d01865e0ba7/ethers-core/src/types/block.rs#L102-L103

I don't think this would add too much friction since most of the TX types use builder pattern, wdyt @gakonst?

mattsse avatar Aug 25 '22 12:08 mattsse