Documentation
¶
Index ¶
- Constants
- type BaseSignatureRepo
- func (r *BaseSignatureRepo) GetBatches(dkgID string) ([]string, error)
- func (r *BaseSignatureRepo) GetSignatureByID(dkgID, signatureID string) ([]types.ReconstructedSignature, error)
- func (r *BaseSignatureRepo) GetSignatures(dkgID string) (signatures SignaturesStorage, err error)
- func (r *BaseSignatureRepo) GetSignaturesByBatchID(dkgID, batchID string) (map[string][]types.ReconstructedSignature, error)
- func (r *BaseSignatureRepo) SaveSignatures(signaturesToSave []types.ReconstructedSignature) error
- type SignatureRepo
- type SignaturesStorage
Constants ¶
View Source
const (
SignaturesKeyPrefix = "signatures"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSignatureRepo ¶
type BaseSignatureRepo struct {
// contains filtered or unexported fields
}
func NewSignatureRepo ¶
func NewSignatureRepo(state state.State) *BaseSignatureRepo
func (*BaseSignatureRepo) GetBatches ¶
func (r *BaseSignatureRepo) GetBatches(dkgID string) ([]string, error)
func (*BaseSignatureRepo) GetSignatureByID ¶
func (r *BaseSignatureRepo) GetSignatureByID(dkgID, signatureID string) ([]types.ReconstructedSignature, error)
func (*BaseSignatureRepo) GetSignatures ¶
func (r *BaseSignatureRepo) GetSignatures(dkgID string) (signatures SignaturesStorage, err error)
func (*BaseSignatureRepo) GetSignaturesByBatchID ¶
func (r *BaseSignatureRepo) GetSignaturesByBatchID(dkgID, batchID string) (map[string][]types.ReconstructedSignature, error)
func (*BaseSignatureRepo) SaveSignatures ¶
func (r *BaseSignatureRepo) SaveSignatures(signaturesToSave []types.ReconstructedSignature) error
type SignatureRepo ¶
type SignatureRepo interface { SaveSignatures(signature []types.ReconstructedSignature) error GetSignatureByID(dkgID, signatureID string) ([]types.ReconstructedSignature, error) GetSignaturesByBatchID(dkgID, batchID string) (map[string][]types.ReconstructedSignature, error) GetSignatures(dkgID string) (SignaturesStorage, error) GetBatches(dkgID string) ([]string, error) }
type SignaturesStorage ¶
type SignaturesStorage map[string]map[string][]types.ReconstructedSignature
func (*SignaturesStorage) AddReconstructedSignature ¶
func (s *SignaturesStorage) AddReconstructedSignature(reconstructedSignature types.ReconstructedSignature)
Click to show internal directories.
Click to hide internal directories.