Documentation ¶
Index ¶
- Constants
- Variables
- func NewLocalParty(isThreshold bool, params *tss.Parameters, key keygen.LocalPartySaveData, ...) (tss.Party, error)
- type LocalParty
- func (p *LocalParty) FirstRound() tss.Round
- func (p *LocalParty) PartyID() *tss.PartyID
- func (p *LocalParty) Start() *tss.Error
- func (p *LocalParty) StoreMessage(msg tss.ParsedMessage) (bool, *tss.Error)
- func (p *LocalParty) String() string
- func (p *LocalParty) Update(msg tss.ParsedMessage) (ok bool, err *tss.Error)
- func (p *LocalParty) UpdateFromBytes(wireBytes []byte, from *tss.PartyID, isBroadcast bool) (bool, *tss.Error)
- func (p *LocalParty) ValidateMessage(msg tss.ParsedMessage) (bool, *tss.Error)
- type LocalPartySaveData
- func BuildLocalSaveDataSubset(sourceData LocalPartySaveData, sortedIDs tss.SortedPartyIDs) (newData LocalPartySaveData, err error)
- func LoadPreTestFixtures(isThreshold bool, qty int, optionalStart ...int) ([]LocalPartySaveData, tss.SortedPartyIDs, error)
- func NewLocalPartySaveData(partyCount int) (saveData LocalPartySaveData)
- type LocalSecrets
Constants ¶
View Source
const (
TaskName = "eddsa-sign"
)
Variables ¶
View Source
var ProofParameter = crypto.NewProofConfig(edwards.Edwards().N)
Functions ¶
func NewLocalParty ¶
func NewLocalParty( isThreshold bool, params *tss.Parameters, key keygen.LocalPartySaveData, aux auxiliary.LocalPartySaveData, out chan<- tss.Message, end chan<- *LocalPartySaveData, fullBytesLen ...int, ) (tss.Party, error)
Types ¶
type LocalParty ¶
func (*LocalParty) FirstRound ¶
func (p *LocalParty) FirstRound() tss.Round
func (*LocalParty) PartyID ¶
func (p *LocalParty) PartyID() *tss.PartyID
func (*LocalParty) Start ¶
func (p *LocalParty) Start() *tss.Error
func (*LocalParty) StoreMessage ¶
func (p *LocalParty) StoreMessage(msg tss.ParsedMessage) (bool, *tss.Error)
func (*LocalParty) String ¶
func (p *LocalParty) String() string
func (*LocalParty) Update ¶
func (p *LocalParty) Update(msg tss.ParsedMessage) (ok bool, err *tss.Error)
func (*LocalParty) UpdateFromBytes ¶
func (*LocalParty) ValidateMessage ¶
func (p *LocalParty) ValidateMessage(msg tss.ParsedMessage) (bool, *tss.Error)
type LocalPartySaveData ¶
type LocalPartySaveData struct { LocalSecrets // original indexes (ki in signing preparation phase) Ks []*big.Int }
Everything in LocalPartySaveData is saved locally to user's HD when done
func BuildLocalSaveDataSubset ¶
func BuildLocalSaveDataSubset(sourceData LocalPartySaveData, sortedIDs tss.SortedPartyIDs) (newData LocalPartySaveData, err error)
BuildLocalSaveDataSubset re-creates the LocalPartySaveData to contain data for only the list of signing parties.
func LoadPreTestFixtures ¶
func LoadPreTestFixtures(isThreshold bool, qty int, optionalStart ...int) ([]LocalPartySaveData, tss.SortedPartyIDs, error)
func NewLocalPartySaveData ¶
func NewLocalPartySaveData(partyCount int) (saveData LocalPartySaveData)
func (LocalPartySaveData) OriginalIndex ¶
func (save LocalPartySaveData) OriginalIndex() (int, error)
recovers a party's original index in the set of parties during keygen
Click to show internal directories.
Click to hide internal directories.