mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-25 07:16:46 +01:00
15 lines
359 B
Go
15 lines
359 B
Go
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.
|
|
type Keystore interface {
|
|
WriteKeyPair(context.Context, keypair.Key) (uint, error)
|
|
LoadPrivateKey(context.Context, string) (*ecdsa.PrivateKey, error)
|
|
}
|