Documentation ¶
Index ¶
- Variables
- func DEStoreKey(pubDE types.DE) []byte
- func DKGStoreKey(groupID tss.GroupID) []byte
- func GroupStoreKey(pubKey tss.Point) []byte
- type DE
- type DKG
- type Group
- type Store
- func (s *Store) DeleteDE(pubDE types.DE) error
- func (s *Store) DeleteDKG(groupID tss.GroupID) error
- func (s *Store) GetAllDEs() ([]DE, error)
- func (s *Store) GetAllDKGs() ([]DKG, error)
- func (s *Store) GetAllGroups() ([]Group, error)
- func (s *Store) GetDE(pubDE types.DE) (DE, error)
- func (s *Store) GetDKG(groupID tss.GroupID) (DKG, error)
- func (s *Store) GetGroup(pubKey tss.Point) (Group, error)
- func (s *Store) HasDE(pubDE types.DE) bool
- func (s *Store) SetDE(privDE DE) error
- func (s *Store) SetDKG(dkg DKG) error
- func (s *Store) SetGroup(group Group) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GlobalStoreKeyPrefix is the prefix for global primitive state variables. GlobalStoreKeyPrefix = []byte{0x00} // DKGStoreKeyPrefix is the prefix for DKG store. DKGStoreKeyPrefix = []byte{0x01} // GroupStoreKeyPrefix is the prefix for group store. GroupStoreKeyPrefix = []byte{0x02} // DEStoreKeyPrefix is the prefix for DE store. DEStoreKeyPrefix = []byte{0x03} )
Functions ¶
func DEStoreKey ¶
DEStoreKey returns the key to retrieve private (d, e) by public (D, E).
func DKGStoreKey ¶
DKGStoreKey returns the key to retrieve all data for a group.
func GroupStoreKey ¶
GroupStoreKey returns the key to retrieve all data for a group.
Types ¶
type DE ¶
type DE struct { PubDE types.DE `json:"pub_d_e"` // Public key of D and E PrivD tss.Scalar `json:"priv_d"` // Private key d PrivE tss.Scalar `json:"priv_e"` // Private key e }
DE represents private value (D, E) used in TSS signing process.
type DKG ¶
type DKG struct { GroupID tss.GroupID `json:"group_id"` // Group ID associated with the DKG MemberID tss.MemberID `json:"member_id"` // Member ID associated with the DKG Coefficients tss.Scalars `json:"coefficients"` // Coefficients used in the DKG process of the DKG OneTimePrivKey tss.Scalar `json:"one_time_priv_key"` // One-time private key used in the DKG process of the DKG }
DKG represents DKG information of a TSS group.
type Group ¶
type Group struct { GroupPubKey tss.Point `json:"group_pub_key"` // Public key of the group MemberID tss.MemberID `json:"member_id"` // Member ID associated with the group PrivKey tss.Scalar `json:"priv_key"` // Private key associated with the group }
Group represents a TSS group.
type Store ¶
Store represents a data store for storing data information for Cylinder process
func (*Store) GetAllDKGs ¶
GetAllDKGs retrieves all DKGs information
func (*Store) GetAllGroups ¶
GetAllGroups retrieves all groups information
Click to show internal directories.
Click to hide internal directories.