client

package
v0.0.0-...-b7ec496 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keystore

func Keystore(keystoneUrl string, clientKey ed25519.PrivateKey, salt []byte) (ks *keystore, err error)

Types

type Key

type Key interface {
	Label() string
	Sign(msg []byte, profile keystonepb.SigningProfile) ([]byte, error)
	PubKey() (*publicKey, error)
}

type Keyring

type Keyring interface {
	NewKey(algo keystonepb.KeygenAlgorithm) (*Key, error)

	// Each keyring has a unique label
	Label() string
	//Sign(msg []byte, profile keystonepb.SigningProfile) ([]byte, error)
	Key(label string) (*Key, error)
	Remove(label string) error
	Keys() ([]*Key, error)
}

Jump to

Keyboard shortcuts

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