Documentation ¶
Index ¶
- type ThreshsignEnclave
- func (s *ThreshsignEnclave) AggregateSigAndVerify(message []byte, ctrId uint32, newValue uint64, sigs map[peerpb.PeerID][]byte) []byte
- func (s *ThreshsignEnclave) BatchAggregateSigAndVerify(reqBatch []ThreshsignRequest) [][]byte
- func (s *ThreshsignEnclave) BatchSign(reqBatch []ThreshsignRequest) [][]byte
- func (s *ThreshsignEnclave) BatchSignUsingEnclave(reqBatch []ThreshsignRequest) [][]byte
- func (s *ThreshsignEnclave) BatchVerify(reqBatch []ThreshsignRequest) bool
- func (s *ThreshsignEnclave) Init(index int, skey string, pkeys []string, numCounters uint32)
- func (s *ThreshsignEnclave) Sign(message []byte, ctrId uint32, newValue uint64) []byte
- func (s *ThreshsignEnclave) SignUsingEnclave(message []byte, ctrId uint32, newValue uint64) []byte
- func (s *ThreshsignEnclave) Verify(message []byte, ctrId uint32, newValue uint64, sig []byte) bool
- type ThreshsignRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThreshsignEnclave ¶
type ThreshsignEnclave struct {
// contains filtered or unexported fields
}
func NewThreshsignEnclave ¶
func NewThreshsignEnclave(filepath string, threshold, total uint32) *ThreshsignEnclave
func (*ThreshsignEnclave) AggregateSigAndVerify ¶
func (*ThreshsignEnclave) BatchAggregateSigAndVerify ¶
func (s *ThreshsignEnclave) BatchAggregateSigAndVerify(reqBatch []ThreshsignRequest) [][]byte
func (*ThreshsignEnclave) BatchSign ¶
func (s *ThreshsignEnclave) BatchSign(reqBatch []ThreshsignRequest) [][]byte
func (*ThreshsignEnclave) BatchSignUsingEnclave ¶
func (s *ThreshsignEnclave) BatchSignUsingEnclave(reqBatch []ThreshsignRequest) [][]byte
func (*ThreshsignEnclave) BatchVerify ¶
func (s *ThreshsignEnclave) BatchVerify(reqBatch []ThreshsignRequest) bool
func (*ThreshsignEnclave) Init ¶
func (s *ThreshsignEnclave) Init(index int, skey string, pkeys []string, numCounters uint32)
func (*ThreshsignEnclave) Sign ¶
func (s *ThreshsignEnclave) Sign(message []byte, ctrId uint32, newValue uint64) []byte
func (*ThreshsignEnclave) SignUsingEnclave ¶
func (s *ThreshsignEnclave) SignUsingEnclave(message []byte, ctrId uint32, newValue uint64) []byte
type ThreshsignRequest ¶
Click to show internal directories.
Click to hide internal directories.