mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-25 15:26:46 +01:00
14 lines
264 B
Go
14 lines
264 B
Go
|
package keystore
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"crypto/ecdsa"
|
||
|
|
||
|
"github.com/grassrootseconomics/cic-custodial/pkg/keypair"
|
||
|
)
|
||
|
|
||
|
type Keystore interface {
|
||
|
WriteKeyPair(context.Context, keypair.Key) error
|
||
|
LoadPrivateKey(context.Context, string) (*ecdsa.PrivateKey, error)
|
||
|
}
|