models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiUrl string
}

type ErrorResponse

type ErrorResponse struct {
	Code      string  `json:"code"`
	Detail    string  `json:"detail"`
	Attribute *string `json:"attribute,omitempty"`
}

type Proof

type Proof struct {
	Proof             string            `json:"proof"`
	MerkleRoot        string            `json:"merkle_root"`
	NullifierHash     string            `json:"nullifier_hash"`
	VerificationLevel VerificationLevel `json:"verification_level"`
}

type VerificationLevel

type VerificationLevel string
const (
	VerificationLevelOrb    VerificationLevel = "orb"
	VerificationLevelDevice VerificationLevel = "device"
)

type VerificationRequest

type VerificationRequest struct {
	Action            string  `json:"action"`
	Proof             string  `json:"proof"`
	MerkleRoot        string  `json:"merkle_root"`
	NullifierHash     string  `json:"nullifier_hash"`
	VerificationLevel string  `json:"verification_level"`
	SignalHash        *string `json:"signal_hash,omitempty"`
}

Jump to

Keyboard shortcuts

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