Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPLimitedGet ¶
Performs an HTTP GET request and returns the response body, limited to the specified maximum size. If the response body exceeds the maximum size, an error is returned. If the maximum size is 0 or greater than maxHTTPBodySize, maxHTTPBodySize is used instead.
func RecoverAddressFromSignature ¶
Recovers the address of the signer from a message and signature. Expects a signature in the format returned by eth_sign: https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign This is the format currently used to sign messages by the Rocket Pool smartnode stack: https://github.com/rocket-pool/smartnode/blob/9ded8d070bdd81798813e16b53657f600bab781e/shared/services/wallet/wallet.go#L305