keystore

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dummy

type Dummy struct {
}

Dummy is a read-only KeyStore that neither loads nor stores keys.

func (*Dummy) GetKey

func (ks *Dummy) GetKey(ski []byte) (bccsp.Key, error)

GetKey returns a key object whose SKI is the one passed.

func (*Dummy) ReadOnly

func (ks *Dummy) ReadOnly() bool

ReadOnly returns true if this KeyStore is read only, false otherwise. If ReadOnly is true then StoreKey will fail.

func (*Dummy) StoreKey

func (ks *Dummy) StoreKey(k bccsp.Key) error

StoreKey stores the key k in this KeyStore. If this KeyStore is read only then the method will fail.

type KVS

type KVS interface {
	Put(id string, state interface{}) error
	Get(id string, state interface{}) error
}

type KVSStore

type KVSStore struct {
	KVS
	Translator idemix.Translator
	Curve      *math.Curve
}

KVSStore is a read-only KeyStore that neither loads nor stores keys.

func (*KVSStore) GetKey

func (ks *KVSStore) GetKey(ski []byte) (bccsp.Key, error)

GetKey returns a key object whose SKI is the one passed.

func (*KVSStore) ReadOnly

func (ks *KVSStore) ReadOnly() bool

ReadOnly returns true if this KeyStore is read only, false otherwise. If ReadOnly is true then StoreKey will fail.

func (*KVSStore) StoreKey

func (ks *KVSStore) StoreKey(k bccsp.Key) error

StoreKey stores the key k in this KeyStore. If this KeyStore is read only then the method will fail.

type NymSecretKey

type NymSecretKey struct {
	Ski        []byte
	Sk         []byte
	Pk         *amcl.ECP
	Exportable bool
}

type UserSecretKey

type UserSecretKey struct {
	Sk         []byte
	Exportable bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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