csp

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSP

type CSP struct {
	*sw.CSP
}

func NewCSP

func NewCSP(keyStore bccsp.KeyStore) (*CSP, error)

type KVS

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

type KVSStore

type KVSStore struct {
	KVS
}

func NewKVSStore

func NewKVSStore(KVS KVS) *KVSStore

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 KeyEntry

type KeyEntry struct {
	KeyType string
	Raw     []byte
}

Jump to

Keyboard shortcuts

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