data

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim added in v0.3.4

type Claim struct {
	ID        uuid.UUID `db:"id" structs:"id"`
	UserDID   string    `db:"user_did" structs:"user_did"`
	IssuerDID string    `db:"issuer_did" structs:"issuer_did"`
	Document  string    `db:"document" structs:"document"`
}

type ClaimQ added in v0.3.4

type ClaimQ interface {
	New() ClaimQ
	Insert(value Claim) error
	FilterBy(column string, value any) ClaimQ
	Get() (*Claim, error)
	DeleteByID(id uuid.UUID) error
	ForUpdate() ClaimQ
	ResetFilter() ClaimQ
}

type MasterQ added in v0.3.4

type MasterQ interface {
	New() MasterQ

	Proof() ProofQ
	Claim() ClaimQ

	Transaction(fn func(db MasterQ) error) error
}

type Proof

type Proof struct {
	ID          int64           `db:"id" structs:"-"`
	DID         string          `db:"did" structs:"did"`
	ClaimID     uuid.UUID       `db:"claim_id" structs:"claim_id"`
	Data        json.RawMessage `db:"data" structs:"data"`
	PubSignals  json.RawMessage `db:"pub_signals" structs:"pub_signals"`
	DocumentSOD json.RawMessage `db:"document_sod" structs:"document_sod"`
}

type ProofQ

type ProofQ interface {
	New() ProofQ
	Insert(value Proof) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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