cic-custodial/internal/keystore/keystore.go
Mohammed Sohail 8676450122
refactor: decouple sql queries, remove transfer
* add inline docs
* removed transfer taks in prep for re-write
2023-02-03 12:29:27 +03:00

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)
}