paradigmxyz / mev-share-rs

Rust client library for Flashbots MEV-share
Apache License 2.0
177 stars 29 forks source link

feat: flashbots style auth #10

Closed FrankieIsLost closed 1 year ago

FrankieIsLost commented 1 year ago

Opening up a draft PR to discuss adding flashbots-style auth to the rpc client. This implementation is based on a tower middleware responsible for signing request bodies and adding the signature to a header. I've also added an example showing how to set up the rpc-client with signing middleware, and sending a request.

A few questions: