Documentation ¶
Index ¶
- Variables
- type ThreshsignEnclave
- func (s *ThreshsignEnclave) AggregateSigAndVerify(message []byte, tc interface{}, sigs map[peerpb.PeerID][]byte) []byte
- func (s *ThreshsignEnclave) Init(index int, seckey, pubkey string, fastLagrange bool)
- func (s *ThreshsignEnclave) Sign(message []byte, tc interface{}) []byte
- func (s *ThreshsignEnclave) SignUsingEnclave(message []byte, tc interface{}) []byte
- func (s *ThreshsignEnclave) Verify(message []byte, tc interface{}, sig []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var G2One = &bn256.G2{}
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) Init ¶
func (s *ThreshsignEnclave) Init(index int, seckey, pubkey string, fastLagrange bool)
func (*ThreshsignEnclave) Sign ¶
func (s *ThreshsignEnclave) Sign(message []byte, tc interface{}) []byte
func (*ThreshsignEnclave) SignUsingEnclave ¶
func (s *ThreshsignEnclave) SignUsingEnclave(message []byte, tc interface{}) []byte
Click to show internal directories.
Click to hide internal directories.