Documentation
¶
Index ¶
- Variables
- func AttachPreParams(ctx context.Context, pool PreParamsPool, job *tssbnbrunner.DKGJob, ...) error
- type DKGDerivationMaterial
- type DKGInput
- type DKGOutput
- type LifecyclePool
- type Pool
- type PreParamsPool
- type Runner
- type Service
- func (s *Service) ECDSAAddress(key string) (string, error)
- func (s *Service) ExportECDSASignature(key string) (common.SignatureData, error)
- func (s *Service) RunDKGSession(ctx context.Context, in DKGInput) (DKGOutput, error)
- func (s *Service) RunSignSession(ctx context.Context, in SignInput) error
- func (s *Service) Snapshot() Snapshot
- func (s *Service) StartPreParamsPool(ctx context.Context) error
- func (s *Service) StopPreParamsPool() error
- type ShareStore
- type SignInput
- type Snapshot
- type SnapshotPool
- type SnapshotProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilRunner = errors.New("runner is required")
Functions ¶
func AttachPreParams ¶
func AttachPreParams(ctx context.Context, pool PreParamsPool, job *tssbnbrunner.DKGJob, shouldAttach bool) error
Types ¶
type DKGDerivationMaterial ¶ added in v0.2.2
type DKGInput ¶
type DKGInput struct {
SessionID string
LocalPartyID string
OrgID string
KeyID string
Parties []string
Threshold uint32
Curve string
Algorithm string
DerivationMaterial DKGDerivationMaterial
Transport coretransport.FrameTransport
EmptyKeyErr error
MissingPub error
MissingAddr error
}
type LifecyclePool ¶
type PreParamsPool ¶
type PreParamsPool interface {
Acquire(ctx context.Context) (*ecdsakeygen.LocalPreParams, error)
}
func ResolvePreParamsSource ¶ added in v0.2.0
func ResolvePreParamsSource(external PreParamsPool, fallback PreParamsPool) PreParamsPool
type Runner ¶
type Runner interface {
RunDKG(ctx context.Context, job tssbnbrunner.DKGJob, transport coretransport.FrameTransport) error
RunSign(ctx context.Context, job tssbnbrunner.SignJob, transport coretransport.FrameTransport) error
ExportECDSASignature(key string) (common.SignatureData, error)
ExportECDSAKeyMaterial(key string) (coreshares.ECDSAKeyMaterial, error)
ImportECDSAKeyMaterial(key string, material coreshares.ECDSAKeyMaterial)
ECDSAAddress(key string) (string, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(r Runner, logger *slog.Logger, pool LifecyclePool, shareStore ShareStore, externalSource ...PreParamsPool) *Service
func (*Service) ExportECDSASignature ¶
func (s *Service) ExportECDSASignature(key string) (common.SignatureData, error)
func (*Service) RunDKGSession ¶
func (*Service) RunSignSession ¶
func (*Service) StartPreParamsPool ¶
func (*Service) StopPreParamsPool ¶
type ShareStore ¶
type ShareStore interface {
}
type SignInput ¶
type SignInput struct {
SessionID string
LocalPartyID string
OrgID string
KeyID string
Parties []string
Digest []byte
Algorithm string
Curve string
Chain string
DerivationContext corederivation.Context
DerivationContextHash string
Transport coretransport.FrameTransport
EmptyKeyErr error
MetadataMismatch error
}
type Snapshot ¶
type Snapshot struct {
PreParamsPoolSize int
PreParamsSyncFallbackCount uint64
PreParamsAcquireWaitNanos int64
}
func BuildSnapshot ¶
func BuildSnapshot(pool Pool, provider SnapshotProvider) Snapshot
type SnapshotPool ¶
type SnapshotPool interface {
LifecyclePool
SnapshotProvider
}
type SnapshotProvider ¶
Click to show internal directories.
Click to hide internal directories.