keystore

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 any) error
	Get(id string, state any) 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