Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidPersonalSignAccount is returned when the account passed to // personal_sign isn't equal to the currently selected account. ErrInvalidPersonalSignAccount = errors.New("invalid account as only the selected one can generate a signature") // ErrSignInvalidNumberOfParameters is returned when the number of parameters for personal_sign // is not valid. ErrSignInvalidNumberOfParameters = errors.New("invalid number of parameters for personal_sign (2 or 3 expected)") )
Functions ¶
This section is empty.
Types ¶
type PublicAPI ¶
type PublicAPI struct {
// contains filtered or unexported fields
}
PublicAPI represents a set of APIs from the `web3.personal` namespace.
func NewAPI ¶
func NewAPI(pendingSignRequests *sign.PendingRequests) *PublicAPI
NewAPI creates an instance of the personal API.
func (*PublicAPI) Recover ¶
func (api *PublicAPI) Recover(context context.Context, rpcParams ...interface{}) (interface{}, error)
Recover is an implementation of `personal_ecRecover` or `web3.personal.ecRecover` API
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents out own implementation of personal sign operations.
Click to show internal directories.
Click to hide internal directories.