@@ -63,9 +63,8 @@ type TransactOpts struct {
6363 Context context.Context // Network context to support cancellation and timeouts (nil = no timeout)
6464
6565 // Quorum
66- PrivateFrom string // The public key of the Tessera/Constellation identity to send this tx from.
67- PrivateFor []string // The public keys of the Tessera/Constellation identities this tx is intended for.
68- IsUsingPrivacyPrecompile bool
66+ PrivateFrom string // The public key of the Tessera/Constellation identity to send this tx from.
67+ PrivateFor []string // The public keys of the Tessera/Constellation identities this tx is intended for.
6968}
7069
7170// FilterOpts is the collection of options to fine tune filtering for events
@@ -277,11 +276,6 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i
277276 }
278277 payload = hash .Bytes ()
279278 rawTx = c .createPrivateTransaction (rawTx , payload )
280-
281- if opts .IsUsingPrivacyPrecompile {
282- rawTx , _ = c .createMarkerTx (opts , rawTx , PrivateTxArgs {PrivateFor : opts .PrivateFor })
283- opts .PrivateFor = nil
284- }
285279 }
286280
287281 // Choose signer to sign transaction
@@ -430,25 +424,6 @@ func (c *BoundContract) createPrivateTransaction(tx *types.Transaction, payload
430424 return privateTx
431425}
432426
433- // (Quorum) createMarkerTx creates a new public privacy marker transaction for the given private tx, distributing tx to the specified privateFor recipients
434- func (c * BoundContract ) createMarkerTx (opts * TransactOpts , tx * types.Transaction , args PrivateTxArgs ) (* types.Transaction , error ) {
435- // Choose signer to sign transaction
436- if opts .Signer == nil {
437- return nil , errors .New ("no signer to authorize the transaction with" )
438- }
439- signedTx , err := opts .Signer (types.QuorumPrivateTxSigner {}, opts .From , tx )
440- if err != nil {
441- return nil , err
442- }
443-
444- hash , err := c .transactor .DistributeTransaction (ensureContext (opts .Context ), signedTx , args )
445- if err != nil {
446- return nil , err
447- }
448-
449- return types .NewTransaction (signedTx .Nonce (), common .QuorumPrivacyPrecompileContractAddress (), tx .Value (), tx .Gas (), tx .GasPrice (), common .FromHex (hash )), nil
450- }
451-
452427// ensureContext is a helper method to ensure a context is not nil, even if the
453428// user specified it as such.
454429func ensureContext (ctx context.Context ) context.Context {
0 commit comments