Versions in this module Expand all Collapse all v0 v0.2.1 Jun 30, 2022 Changes in this version + func GenerateNonce() string + type ExpiredMessage struct + func (m *ExpiredMessage) Error() string + type InvalidMessage struct + func (m *InvalidMessage) Error() string + type InvalidSignature struct + func (m *InvalidSignature) Error() string + type Message struct + func InitMessage(domain, address, uri, nonce string, options map[string]interface{}) (*Message, error) + func ParseMessage(message string) (*Message, error) + func (m *Message) GetAddress() common.Address + func (m *Message) GetChainID() int + func (m *Message) GetDomain() string + func (m *Message) GetExpirationTime() *string + func (m *Message) GetIssuedAt() string + func (m *Message) GetNonce() string + func (m *Message) GetNotBefore() *string + func (m *Message) GetRequestID() *string + func (m *Message) GetResources() []url.URL + func (m *Message) GetStatement() *string + func (m *Message) GetURI() url.URL + func (m *Message) GetVersion() string + func (m *Message) String() string + func (m *Message) ValidAt(when time.Time) (bool, error) + func (m *Message) ValidNow() (bool, error) + func (m *Message) Verify(signature string, domain *string, nonce *string, timestamp *time.Time) (*ecdsa.PublicKey, error) + func (m *Message) VerifyEIP191(signature string) (*ecdsa.PublicKey, error)