Documentation ¶
Index ¶
- func Validate(evt *event.T, challenge string, relayURL string) (pubkey string, ok bool)
- type Challenge
- func (a *Challenge) Bytes() []byte
- func (a *Challenge) Label() string
- func (a *Challenge) MarshalJSON() ([]byte, error)
- func (a *Challenge) String() string
- func (a *Challenge) ToArray() array.T
- func (a *Challenge) Unmarshal(buf *text.Buffer) (err error)
- func (a *Challenge) UnmarshalJSON(bytes []byte) error
- type Response
- func (a *Response) Bytes() []byte
- func (a *Response) Label() string
- func (a *Response) MarshalJSON() ([]byte, error)
- func (a *Response) String() string
- func (a *Response) ToArray() array.T
- func (a *Response) Unmarshal(buf *text.Buffer) (err error)
- func (a *Response) UnmarshalJSON(bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Challenge ¶
type Challenge struct {
Challenge string
}
func NewChallenge ¶
func (*Challenge) MarshalJSON ¶
func (*Challenge) UnmarshalJSON ¶ added in v1.0.11
type Response ¶
func NewResponse ¶
NewResponse creates an Response response from an Challenge.
The caller must sign the embedded event before sending it back to authenticate.
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶ added in v1.0.11
Click to show internal directories.
Click to hide internal directories.