services

package
v0.0.0-...-2887088 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StateVerificationHandler

func StateVerificationHandler(
	ethStateContracts map[string]*abi.State,
) packers.VerificationHandlerFunc

Types

type ClaimService

type ClaimService struct {
	CredentialRepository *repository.CredentialRepository
}

func (*ClaimService) CreateVerifiableCredential

func (cs *ClaimService) CreateVerifiableCredential(
	ctx context.Context,
	issuer *w3c.DID,
	credentialData CredentialData,
) (string, error)

func (*ClaimService) GetCredentialByID

func (cs *ClaimService) GetCredentialByID(
	ctx context.Context,
	issuer string,
	credentialID string,
) (verifiable.W3CCredential, error)

type CredentialData

type CredentialData struct {
	CredentialID   string
	SchemaJSONLD   string
	SchemaURLJSON  string
	CredentialType string
	Claim          [8]*big.Int
}

Jump to

Keyboard shortcuts

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