Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

DRAFT: Privacy e2e #232

Draft
wants to merge 88 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
78bfb14
added keyexchange protocol
Mikelle Mar 13, 2024
1887eb8
added pub keys to handshake and keykeeper init in node
Mikelle Mar 13, 2024
6671e34
signer -> encryptor
Mikelle Mar 14, 2024
d14ced1
implemented bid/commitment encryption
Mikelle Mar 18, 2024
ec1710e
Merge branch 'main' into feature/privacy-e2e
Mikelle Mar 18, 2024
61f37c4
get rid of repeated code
Mikelle Mar 18, 2024
d6548b3
updated according to SC changes
Mikelle Mar 20, 2024
27a564d
Merge branch 'main' into privacy-e2e
Mikelle Mar 31, 2024
16557f8
applied smart contract update
Mikelle Mar 31, 2024
d8eb306
fixed integrationtest
Mikelle Apr 1, 2024
62b0582
added commitment opening
Mikelle Apr 3, 2024
4046df8
added event listening to preconf
Mikelle Apr 3, 2024
d71caba
added missed rpc for l1
Mikelle Apr 4, 2024
4368f26
fix L1RPCUrl in node.Options
Mikelle Apr 4, 2024
e0be814
fixed wrong initialization
Mikelle Apr 4, 2024
3132a88
fixed preconf encrypted
Mikelle Apr 5, 2024
ec36610
fixes for keyexchange
Mikelle Apr 5, 2024
620124e
deleted redundant import
Mikelle Apr 5, 2024
49546a0
fixed concurrent access
Mikelle Apr 5, 2024
8be8126
fixed concurrent access
Mikelle Apr 5, 2024
f535ee4
updated handshake
Mikelle Apr 5, 2024
58fce11
changed logic for the peer connection and commitment opening
Mikelle Apr 8, 2024
ab659d0
fixing lint issues
Mikelle Apr 8, 2024
fbfac6a
commented docker
Mikelle Apr 8, 2024
16bd615
uncommented ghcr
Mikelle Apr 8, 2024
6f4dbe1
switched from subscribtion to wss to pollInterval
Mikelle Apr 9, 2024
4505776
get rid of ethclient dial to l1
Mikelle Apr 9, 2024
9f77daa
fixed golint
Mikelle Apr 9, 2024
ba3bb14
added logs for provider init
Mikelle Apr 9, 2024
317c78d
added log errors
Mikelle Apr 9, 2024
6a73721
added go func for blocking go routine
Mikelle Apr 9, 2024
6b5656d
added prints for minStake call
Mikelle Apr 10, 2024
a56afca
added json marshal/unmarshal for the keys
Mikelle Apr 10, 2024
1829544
added block tracker contract to main.go
Mikelle Apr 10, 2024
d7650f1
updated contract-abi link
Mikelle Apr 10, 2024
c15ce3c
fixed link to block tracker contract
Mikelle Apr 11, 2024
3f08925
added more logs to sc calls
Mikelle Apr 11, 2024
2c631ea
switched to ws port to connect to ethereum
Mikelle Apr 11, 2024
aa3f0a3
fixed double metrics
Mikelle Apr 11, 2024
0471cd0
added window++ to GetAllowance method
Mikelle Apr 12, 2024
d08ff1a
deleted wait receipt from open commitment
Mikelle Apr 12, 2024
421c600
added log parsing for the bidder
Mikelle Apr 12, 2024
0873454
added logs
Mikelle Apr 13, 2024
51a109d
updated bidder.proto to allow big integers
Mikelle Apr 13, 2024
c835490
commented prepay test
Mikelle Apr 13, 2024
4574dd7
updated bidder_registry event parsing
Mikelle Apr 15, 2024
a7b40d0
changed type of encryptedCommitmentIndex from bytes to bytes32 for SC…
Mikelle Apr 15, 2024
1ad227a
changes spaces
Mikelle Apr 15, 2024
7b426ed
openCommitment return txHash
Mikelle Apr 15, 2024
bd80a56
added waitReceipt for OpenCommitment
Mikelle Apr 15, 2024
ab67608
fixed wrong import
Mikelle Apr 15, 2024
fdafe6e
fixed incorrect bid hash
Mikelle Apr 15, 2024
6e0b1e6
added missing fields for the provider preconf
Mikelle Apr 15, 2024
9e16af3
fixed preconf digest and sig
Mikelle Apr 15, 2024
c8ead55
fixed bidder init
Mikelle Apr 16, 2024
5d5c0c0
added event handler from oracle
Mikelle Apr 16, 2024
cebd982
changed event struct
Mikelle Apr 16, 2024
4944d91
fixed not started event listener
Mikelle Apr 16, 2024
d7e22be
deleted redundant conversion
Mikelle Apr 16, 2024
60c9150
changed ctx creation in node
Mikelle Apr 17, 2024
c2fd6c1
changed cancel ctx
Mikelle Apr 17, 2024
6b357c7
added event listening for the commitmentIndex saving
Mikelle Apr 17, 2024
e1b8f84
fixed lint issues
Mikelle Apr 17, 2024
c325a87
init commitmentDA for bidder and provider
Mikelle Apr 17, 2024
3126dbb
added more logs
Mikelle Apr 17, 2024
ded166a
deleted noopcomm
Mikelle Apr 17, 2024
8d55564
fix: allowance refresh for testing
Apr 18, 2024
61af4c4
Merge pull request #233 from primevprotocol/privacy-e2e-allowance
aloknerurkar Apr 18, 2024
2fca5a1
added allowance manager
Mikelle Apr 18, 2024
49f4e92
fixed lint
Mikelle Apr 18, 2024
8ac8f4b
added missed store init
Mikelle Apr 18, 2024
29be105
fixed npe
Mikelle Apr 18, 2024
854d3d5
fixed missing api
Mikelle Apr 18, 2024
1d79dce
added owner set up to bidder struct
Mikelle Apr 18, 2024
6d0a594
updated prepay function
Mikelle Apr 19, 2024
702caa0
updated bidder service to allow to prepay for specific windows
Mikelle Apr 19, 2024
33d8755
changed checkAllowance behavior
Mikelle Apr 19, 2024
ccea487
deleted redundant methods from block winner
Mikelle Apr 19, 2024
478dae6
fixed lint
Mikelle Apr 19, 2024
0459afd
updated according to remarks
Mikelle Apr 21, 2024
e6ad656
fixed order in prepay allowance request
Mikelle Apr 21, 2024
300aaf6
fixed log
Mikelle Apr 21, 2024
a1866d7
fix: real-bidder test
Apr 22, 2024
7198a7a
fix: real-bidder test
Apr 22, 2024
f523fb7
chore: test adjustment
Apr 22, 2024
51f5040
added simple logs and get rid of wait receipt
Mikelle Apr 22, 2024
e4a8cc2
added block number as a arg for prepay allowance
Mikelle Apr 23, 2024
a865180
updated naming, allowance -> deposit and prepay -> deposit
Mikelle Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

contracts "github.com/primevprotocol/contracts-abi/config"
mevcommit "github.com/primevprotocol/mev-commit"
ks "github.com/primevprotocol/mev-commit/pkg/keysigner"
ks "github.com/primevprotocol/mev-commit/pkg/keykeeper/keysigner"
"github.com/primevprotocol/mev-commit/pkg/node"
"github.com/primevprotocol/mev-commit/pkg/util"
"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -192,13 +192,27 @@ var (
Value: contracts.TestnetContracts.PreconfCommitmentStore,
})

optionBlockTrackerAddr = altsrc.NewStringFlag(&cli.StringFlag{
Name: "block-tracker-contract",
Usage: "address of the block tracker contract",
EnvVars: []string{"MEV_COMMIT_BLOCK_TRACKER_ADDR"},
Value: contracts.TestnetContracts.BlockTracker,
})

optionSettlementRPCEndpoint = altsrc.NewStringFlag(&cli.StringFlag{
Name: "settlement-rpc-endpoint",
Usage: "rpc endpoint of the settlement layer",
EnvVars: []string{"MEV_COMMIT_SETTLEMENT_RPC_ENDPOINT"},
Value: "http://localhost:8545",
})

optionSettlementWSRPCEndpoint = altsrc.NewStringFlag(&cli.StringFlag{
Name: "settlement-ws-rpc-endpoint",
Usage: "ws rpc endpoint of the settlement layer",
EnvVars: []string{"MEV_COMMIT_SETTLEMENT_WS_RPC_ENDPOINT"},
Value: "ws://localhost:8546",
})

optionNATAddr = altsrc.NewStringFlag(&cli.StringFlag{
Name: "nat-addr",
Usage: "external address of the node",
Expand Down Expand Up @@ -246,7 +260,9 @@ func main() {
optionBidderRegistryAddr,
optionProviderRegistryAddr,
optionPreconfStoreAddr,
optionBlockTrackerAddr,
optionSettlementRPCEndpoint,
optionSettlementWSRPCEndpoint,
optionNATAddr,
optionNATPort,
optionServerTLSCert,
Expand Down Expand Up @@ -330,7 +346,9 @@ func launchNodeWithConfig(c *cli.Context) error {
PreconfContract: c.String(optionPreconfStoreAddr.Name),
ProviderRegistryContract: c.String(optionProviderRegistryAddr.Name),
BidderRegistryContract: c.String(optionBidderRegistryAddr.Name),
BlockTrackerContract: c.String(optionBlockTrackerAddr.Name),
RPCEndpoint: c.String(optionSettlementRPCEndpoint.Name),
WSRPCEndpoint: c.String(optionSettlementWSRPCEndpoint.Name),
NatAddr: natAddr,
TLSCertificateFile: crtFile,
TLSPrivateKeyFile: keyFile,
Expand Down
666 changes: 396 additions & 270 deletions gen/go/bidderapi/v1/bidderapi.pb.go

Large diffs are not rendered by default.

40 changes: 38 additions & 2 deletions gen/go/bidderapi/v1/bidderapi.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions gen/go/bidderapi/v1/bidderapi_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading