publickey

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 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 Store

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

Store manages a persistent store of public keys for issuers. The store also caches the public keys for better performance.

func New

func New(p storage.Provider, fetchPublicKey verifiable.PublicKeyFetcher) (*Store, error)

New returns a new public key store.

func (*Store) GetPublicKey

func (c *Store) GetPublicKey(issuerID, keyID string) (*verifier.PublicKey, error)

GetPublicKey returns the public key for the given issuer and key ID.

Jump to

Keyboard shortcuts

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