threshsign2

package
v0.0.0-...-3a733ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (s *ThreshsignEnclave) AggregateSigAndVerify(message []byte, tc interface{}, sigs map[peerpb.PeerID][]byte) []byte

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

func (*ThreshsignEnclave) Verify

func (s *ThreshsignEnclave) Verify(message []byte, tc interface{}, sig []byte) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL