mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2025-04-09 03:21:02 +02:00
16 lines
376 B
Go
16 lines
376 B
Go
package keystore
|
|
|
|
import (
|
|
"context"
|
|
"crypto/ecdsa"
|
|
|
|
"github.com/grassrootseconomics/cic-custodial/internal/ethereum"
|
|
)
|
|
|
|
// Keystore represents a persistent distributed keystore
|
|
type Keystore interface {
|
|
WriteKeyPair(context.Context, ethereum.Key) error
|
|
LoadPrivateKey(context.Context, string) (*ecdsa.PrivateKey, error)
|
|
ActivateAccount(context.Context, string) error
|
|
}
|