auth

package
v0.0.0-...-c520c97 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const VerificationKeyPath = "verification_key.json"

Variables

This section is empty.

Functions

func Callback

func Callback(w http.ResponseWriter, r *http.Request)

Callback handles the callback from iden3

func GenerateAuthRequest

func GenerateAuthRequest(userID int64, params storage.VerificationParams) ([]byte, error)

GenerateAuthRequest generates a new authentication request and returns it as a JSON object

func Home

func Home(w http.ResponseWriter, r *http.Request)

Types

type AuthRequestData

type AuthRequestData struct {
	Request protocol.AuthorizationRequestMessage
	UserID  int64
}

type KeyLoader

type KeyLoader struct {
	Dir string
}

func (KeyLoader) Load

func (m KeyLoader) Load(id circuits.CircuitID) ([]byte, error)

Load keys from embedded FS

Jump to

Keyboard shortcuts

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