siwe

package
v0.0.0-...-8c125ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SIWE

type SIWE struct {
	// contains filtered or unexported fields
}

func New

func New(domain string, redisClient *redis.Client) (*SIWE, error)

func (*SIWE) ConsumeNonce

func (s *SIWE) ConsumeNonce(ctx context.Context, nonce string) error

func (*SIWE) Domain

func (s *SIWE) Domain() string

func (*SIWE) GetNonce

func (s *SIWE) GetNonce(ctx context.Context) (string, error)

func (*SIWE) ValidateSIWESignature

func (s *SIWE) ValidateSIWESignature(ctx context.Context, rawMessage, signature string) (*common.Address, int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL