0xsequence / bundler

ERC5189 p2p transaction bundler
14 stars 1 forks source link

Specify ERC-5189 message schema #19

Open Agusx1211 opened 5 months ago

Agusx1211 commented 5 months ago

Right now, ERC-5189 does not specify a message schema for passing operations among peers.

This bundler uses libp2p GossipSub as a temporary solution for this, with peers subscribing to:

ERC5189:pool:op:<chain-id> and ERC5189:pool:archive:<chain-id>, and they pass around JSON marshalled messages. It would be better if either ERC-5189 or some standard could specify how these messages should be passed among peers.

Additionally, it may be worth it to use this opportunity to move to protobuf instead of JSON.