Documentation ¶
Index ¶
- Variables
- func GeneratePKPairFromSubAddress(w []byte) (*ecdsa.PublicKey, *ecdsa.PublicKey, error)
- type KeyPool
- func (self *KeyPool) Cachelen() int
- func (self *KeyPool) InsertKeyCache(cache string)
- func (self *KeyPool) InsertPolynomialShare(id int, keys []*ecdsa.PublicKey)
- func (self *KeyPool) InsertPrivateKeyShare(id int, key string)
- func (self *KeyPool) KeyCache(id int) string
- func (self *KeyPool) ShamirKeyShareCheck(usechain *config.Usechain)
- type SharePool
- func (self *SharePool) AddVerifiedMain(data VerifiedMain)
- func (self *SharePool) CheckSharedMsg(usechain *config.Usechain, requires int)
- func (self *SharePool) GetVerifiedCertHash(key string) common.Hash
- func (self *SharePool) SaveAccountSharedCache(A string, bsA string, id int)
- func (self *SharePool) SaveEncryptedData(addrID string, h common.Hash, data string)
- func (self *SharePool) SaveEncryptedSub(addrSubIDstring string, data string)
- func (self *SharePool) SaveSubData(S string, H string, subID string)
- type SubData
- type UserData
- type VerifiedMain
- type VerifiedSub
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommitteeMax = 5 //Just default params, will update from contract when process running CommitteeRequires = 3 CommitteeNodeList []string // All committer VerifierRequires = 2 VerifierSubRequires = 5 )
Functions ¶
Types ¶
type KeyPool ¶
type KeyPool struct {
// contains filtered or unexported fields
}
func NewKeyPool ¶
func NewKeyPool() *KeyPool
func (*KeyPool) InsertKeyCache ¶
func (*KeyPool) InsertPolynomialShare ¶
func (*KeyPool) InsertPrivateKeyShare ¶
func (*KeyPool) ShamirKeyShareCheck ¶
Check whether get enough shares, and try to generate the multi-sssa private key
type SharePool ¶
type SharePool struct { // contains filtered or unexported fields }
func NewSharePool ¶
func NewSharePool() *SharePool
func (*SharePool) AddVerifiedMain ¶
func (self *SharePool) AddVerifiedMain(data VerifiedMain)
func (*SharePool) CheckSharedMsg ¶
func (*SharePool) GetVerifiedCertHash ¶
func (*SharePool) SaveAccountSharedCache ¶
func (*SharePool) SaveEncryptedData ¶
func (*SharePool) SaveEncryptedSub ¶
type VerifiedMain ¶
Click to show internal directories.
Click to hide internal directories.