vcissuer

package
v0.0.0-...-7b7c10a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VCIssuerURL    string
	AuthToken      string
	ProfileName    string
	DocumentLoader ld.DocumentLoader
	HTTPClient     httpClient
}

Config represents configuration parameters for Service.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a service to issue verifiable credentials.

func New

func New(config *Config) *Service

New creates a new instance of issuer Service.

func (*Service) CreateIssuerProfile

func (s *Service) CreateIssuerProfile(
	ctx context.Context, did, publicKeyID string, privateKey ed25519.PrivateKey) error

CreateIssuerProfile create gatekeeper profile on vs issuer service.

func (*Service) IssueCredential

func (s *Service) IssueCredential(ctx context.Context, cred []byte) (*verifiable.Credential, error)

IssueCredential issues verifiable credential.

Jump to

Keyboard shortcuts

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