keys

package
v0.0.0-...-a6f14d4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const SHARED_DIR = "/var/tmp/fn/playground-cose-eastus-dir"

Variables

This section is empty.

Functions

func CreateDoc

func CreateDoc(hostport string, publicKey crypto.PublicKey) (string, error)

func GetCoseSignerDefault

func GetCoseSignerDefault() (cose.Signer, error)

func GetCoseSignerFor

func GetCoseSignerFor(alg cose.Algorithm, key crypto.Signer) (cose.Signer, error)

func GetCoseVerifierDefault

func GetCoseVerifierDefault() (cose.Verifier, error)

func GetCoseVerifierFor

func GetCoseVerifierFor(alg cose.Algorithm, pubKey crypto.PublicKey) (cose.Verifier, error)

func GetKeyDefault

func GetKeyDefault() *ecdsa.PrivateKey

func GetPublicKeyIdDefault

func GetPublicKeyIdDefault() string

Types

type Did

type Did struct {
	Issuer string
	KeyId  string
	Client *http.Client
}

func (Did) FetchDocument

func (d Did) FetchDocument() (map[string]interface{}, error)

func (Did) GetClient

func (d Did) GetClient() *http.Client

func (Did) GetUrl

func (d Did) GetUrl() (*url.URL, error)

func (Did) ResolvePublicKey

func (d Did) ResolvePublicKey() (crypto.PublicKey, error)

Jump to

Keyboard shortcuts

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