issuecredential

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 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 {
	VCStatusManager vcStatusManager
	Crypto          vcCrypto
	KMSRegistry     kmsRegistry
}

type Opts added in v1.5.0

type Opts func(opts *issueCredentialOpts)

Opts is signing credential option.

func WithCryptoOpts added in v1.5.0

func WithCryptoOpts(cryptoOpts []crypto.SigningOpts) Opts

WithCryptoOpts is an option to pass crypto.SigningOpts.

func WithSkipIDPrefix added in v1.8.0

func WithSkipIDPrefix() Opts

WithSkipIDPrefix is an option to skip ID prefix.

func WithTransactionID added in v1.5.0

func WithTransactionID(transactionID string) Opts

WithTransactionID is an option to pass transactionID.

type Service

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

func New

func New(config *Config) *Service

func (*Service) IssueCredential

func (s *Service) IssueCredential(
	ctx context.Context,
	credential *verifiable.Credential,
	profile *profileapi.Issuer,
	opts ...Opts,
) (*verifiable.Credential, error)

type ServiceInterface

type ServiceInterface interface {
	IssueCredential(
		ctx context.Context,
		credential *verifiable.Credential,
		profile *profileapi.Issuer,
		opts ...Opts,
	) (*verifiable.Credential, error)
}

Jump to

Keyboard shortcuts

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