cic-custodial/internal/keystore/keystore.go

15 lines
359 B
Go
Raw Normal View History

2022-11-30 10:51:24 +01:00
package keystore
import (
"context"
"crypto/ecdsa"
"github.com/grassrootseconomics/cic-custodial/pkg/keypair"
)
// Keystore defines how keypairs should be stored and accessed from a storage backend.
2022-11-30 10:51:24 +01:00
type Keystore interface {
WriteKeyPair(context.Context, keypair.Key) (uint, error)
2022-11-30 10:51:24 +01:00
LoadPrivateKey(context.Context, string) (*ecdsa.PrivateKey, error)
}