vcprovider

package
v0.0.0-...-9a4d363 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderVCS = "vcs"
)

Variables

This section is empty.

Functions

func GetIssueCredentialRequestData

func GetIssueCredentialRequestData(vc *verifiable.Credential, desiredFormat string) (interface{}, error)

Types

type Config

type Config struct {
	TLS                 *tls.Config
	WalletParams        *WalletParams
	UniResolverURL      string
	ContextProviderURL  string
	OidcProviderURL     string
	IssueVCURL          string
	DidDomain           string
	DidServiceAuthToken string
	VCFormat            string
	OrgName             string
	OrgSecret           string
}

type ConfigOption

type ConfigOption func(c *Config)

type VCProvider

type VCProvider interface {
	// GetConfig returns *Config.
	GetConfig() *Config
	// GetCredentials returns the map of signed credentials.
	GetCredentials() (map[string][]byte, error)
}

VCProvider represents the API for credentials provider.

func GetProvider

func GetProvider(vcProviderType string, opts ...ConfigOption) (VCProvider, error)

type WalletParams

type WalletParams struct {
	Token      string
	Passphrase string
	UserID     string
	DidID      string
	DidKeyID   string
}

Jump to

Keyboard shortcuts

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