Documentation ¶
Overview ¶
Package dappauth provides the ability to check if an Ethereume address is an authorized signer for a signature generated via eth_sign rpc method. Supports both external wallets and contract wallets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator is the instance that holds the ethclient.Client .
func NewAuthenticator ¶
func NewAuthenticator(ctx context.Context, cc bind.ContractCaller) *Authenticator
NewAuthenticator creates a new Authenticator .
func (*Authenticator) IsAuthorizedSigner ¶
func (a *Authenticator) IsAuthorizedSigner(challenge, signature, addrHex string) (bool, error)
IsAuthorizedSigner implements the logic to check if an address is an authorized signer for a signature and challenge.
Click to show internal directories.
Click to hide internal directories.