credential_adapter

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 5 * time.Second

Variables

View Source
var (
	DEFAULT_ALIAS_LENGTH = 5
)

Functions

func CreateDefaultAlias

func CreateDefaultAlias() string

Types

type CredentialAdapterClient

type CredentialAdapterClient interface {
	Close() error
	CreateIssuanceChallenge(cred_type string, did string, auth_token string) (IssuanceChallenge, error)
	CreatePresentationChallenge(credTypes []string) (*PresentationChallenge, error)
	IssueVerifiableCredential(cred_type string, did string, nonce string, signature []byte, auth_token string) (VerifiableCredential, error)
	PresentVerifiableCredential(vp map[string]interface{}, did string, nonce string, signature []byte) error
}

func NewCredentialAdapterClient

func NewCredentialAdapterClient(address string) (CredentialAdapterClient, error)

type IssuanceChallenge

type IssuanceChallenge struct {
	Nonce    string
	CredType string
	Url      string
}

type PresentationChallenge

type PresentationChallenge struct {
	Nonce           string
	Url             string
	CredentialTypes []string
}

type VerifiableCredential

type VerifiableCredential struct {
	Alias string
	Type  string
	Doc   []byte
}

Directories

Path Synopsis
Package grpc_mock is a generated GoMock package.
Package grpc_mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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