Documentation
¶
Overview ¶
Package softkey provides an in-memory KeyStore for tests and local development. It holds private keys in process memory and performs signing and key agreement in software. Production deployments should back the didcomm.KeyStore interface with an HSM or KMS instead, so that key material never resides in the application's address space.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory KeyStore keyed by verification-method id.
func New ¶
func New(materials ...*didcomm.KeyMaterial) (*Store, error)
New builds a Store seeded with the given key material.
func (*Store) Add ¶
func (s *Store) Add(km *didcomm.KeyMaterial) error
Add loads one DID's key material into the store.
func (*Store) DiffieHellman ¶
DiffieHellman implements didcomm.KeyStore.
Click to show internal directories.
Click to hide internal directories.