Documentation
¶
Index ¶
- Variables
- type Provider
- func (p *Provider) Create(i *identity.SIWE) error
- func (p *Provider) Delete(i *identity.SIWE) error
- func (p *Provider) Get(userID, id string) (*identity.SIWE, error)
- func (p *Provider) GetByMessage(msg string, signature string) (*identity.SIWE, error)
- func (p *Provider) GetMany(ids []string) ([]*identity.SIWE, error)
- func (p *Provider) List(userID string) ([]*identity.SIWE, error)
- func (p *Provider) New(userID string, msg string, signature string) (*identity.SIWE, error)
- type SIWEService
- type Store
- func (s *Store) Create(i *identity.SIWE) error
- func (s *Store) Delete(i *identity.SIWE) error
- func (s *Store) Get(userID, id string) (*identity.SIWE, error)
- func (s *Store) GetByAddress(chainID int, address web3.EIP55) (*identity.SIWE, error)
- func (s *Store) GetMany(ids []string) ([]*identity.SIWE, error)
- func (s *Store) List(userID string) ([]*identity.SIWE, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Store *Store Clock clock.Clock SIWE SIWEService }
func (*Provider) GetByMessage ¶
type SIWEService ¶
type SIWEService interface {
VerifyMessage(msg string, signature string) (*model.SIWEWallet, *ecdsa.PublicKey, error)
}
nolint: golint
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
func (*Store) GetByAddress ¶
Click to show internal directories.
Click to hide internal directories.