threshsign

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: 6 Imported by: 0

Documentation

Index

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 (s *ThreshsignEnclave) AggregateSigAndVerify(message []byte, ctrId uint32, newValue uint64, sigs map[peerpb.PeerID][]byte) []byte

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

func (*ThreshsignEnclave) Verify

func (s *ThreshsignEnclave) Verify(message []byte, ctrId uint32, newValue uint64, sig []byte) bool

type ThreshsignRequest

type ThreshsignRequest struct {
	Message     []byte
	Counter     uint64
	SigShares   map[peerpb.PeerID][]byte
	CombinedSig []byte
}

Jump to

Keyboard shortcuts

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