quorum icon indicating copy to clipboard operation
quorum copied to clipboard

Upgrade ethclient and abigen to support privateFor

Open stevenroose opened this issue 9 years ago • 7 comments

Currently the privateFor parameters is supported by the JSON-RPC API. The Go bindings in ethclient and abigen (that uses ethclient under the hood) do not yet.

Depends on: #90

stevenroose avatar May 05 '17 16:05 stevenroose

I'm looking into how hard it is to do.

stevenroose avatar May 05 '17 16:05 stevenroose

Back then, I realised it would be possible once #90 was solved, since abigen primarily relies on sendRawTransaction. Anyone else trying to solve this?

stevenroose avatar Jul 17 '17 09:07 stevenroose

I'm planning to take a look at https://github.com/jpmorganchase/quorum/issues/90, unless any of you guys are already @patrickmn? I saw the help wanted label was removed.

conor10 avatar Jul 17 '17 09:07 conor10

@conor10 Please feel free. I was going to, but haven't started.

patrickmn avatar Jul 17 '17 16:07 patrickmn

There's two parts of the problem. One is the server, which allowing the sendRawTransaction JSON-RPC call to have a privateFor field somewhere. The other is incorporating that in the ethclient package. The latter should be more straightforward, but makes no sense if the former is not yet done.

It's not easy to find how and where there were modifications to geth regarding private transactions. F.e. I can only see private.P.Send being called with the data field being contract code, not when making normal non-deployment transactions.

Let me open a WIP PR with what I got.

stevenroose avatar Jul 17 '17 16:07 stevenroose

Regarding modifications, see https://github.com/jpmorganchase/quorum/pull/146#issuecomment-315831913

patrickmn avatar Jul 17 '17 17:07 patrickmn

This has been implemented in https://github.com/jpmorganchase/quorum/pull/819

prd-fox avatar Oct 03 '19 13:10 prd-fox