credential_adapter

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BankCard = "BankCard"
View Source
const PermanentResidentCard = "PermanentResidentCard"

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) (IssuanceChallenge, error)
	CreatePresentationChallenge() (*PresentationChallenge, error)
	IssueVerifiableCredential(cred_type string, did string, nonce string, signature []byte) (VerifiableCredential, error)
	PresentVerifiableCredential(creds []model.SerializedDocument, proof model.Proof) 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
}

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