signature

package
v0.0.0-...-ee95d54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSignatureService

type BaseSignatureService struct {
	// contains filtered or unexported fields
}

func NewSignatureService

func NewSignatureService(signatureRepo signature.SignatureRepo) *BaseSignatureService

func (*BaseSignatureService) GetBatches

func (s *BaseSignatureService) GetBatches(dto *dto.DkgIdDTO) ([]string, error)

func (*BaseSignatureService) GetSignatureByID

func (*BaseSignatureService) GetSignatures

GetSignatures returns all signatures for the given DKG round that were reconstructed on the airgapped machine and broadcasted by users

func (*BaseSignatureService) GetSignaturesByBatchID

func (s *BaseSignatureService) GetSignaturesByBatchID(dto *dto.SignaturesByBatchIdDTO) (map[string][]types.ReconstructedSignature, error)

func (*BaseSignatureService) SaveSignatures

func (s *BaseSignatureService) SaveSignatures(signature []types.ReconstructedSignature) error

type SignatureService

type SignatureService interface {
	GetSignatures(dto *dto.DkgIdDTO) (signature.SignaturesStorage, error)
	GetSignatureByID(dto *dto.SignatureByIdDTO) ([]types.ReconstructedSignature, error)
	GetSignaturesByBatchID(dto *dto.SignaturesByBatchIdDTO) (map[string][]types.ReconstructedSignature, error)
	GetBatches(dto *dto.DkgIdDTO) ([]string, error)
	SaveSignatures(signature []types.ReconstructedSignature) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL