Documentation
¶
Overview ¶
Package signature provides functionality for interacting with the X-Flashbots-Signature header.
Index ¶
Constants ¶
View Source
const HTTPHeader = "X-Flashbots-Signature"
HTTPHeader is the name of the X-Flashbots-Signature header.
Variables ¶
View Source
var ( ErrNoSignature = errors.New("no signature provided") ErrInvalidSignature = errors.New("invalid signature provided") )
Functions ¶
Types ¶
type Signer ¶ added in v0.8.2
type Signer struct {
// contains filtered or unexported fields
}
func NewRandomSigner ¶ added in v0.8.2
func NewSigner ¶ added in v0.8.2
func NewSigner(privateKey *ecdsa.PrivateKey) Signer
func NewSignerFromHexPrivateKey ¶ added in v0.8.2
NewSignerFromHexPrivateKey creates new signer from 0x-prefixed hex-encoded private key
Click to show internal directories.
Click to hide internal directories.