ecdsa_tss

package module
v0.0.0-...-b75e130 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 1_048_576

Variables

This section is empty.

Functions

This section is empty.

Types

type Keygen

type Keygen struct {
	// contains filtered or unexported fields
}

func NewKeygen

func NewKeygen(i int, t int, n int, incoming <-chan string, outgoing chan<- string) *Keygen

func (*Keygen) Free

func (k *Keygen) Free()

func (*Keygen) Initialize

func (k *Keygen) Initialize()

func (*Keygen) Output

func (k *Keygen) Output() *string

func (*Keygen) ProcessLoop

func (k *Keygen) ProcessLoop()

type KeygenSimple

type KeygenSimple struct {
	// contains filtered or unexported fields
}

func NewKeygenSimple

func NewKeygenSimple(i int, t int, n int) *KeygenSimple

func (*KeygenSimple) Free

func (k *KeygenSimple) Free()

func (*KeygenSimple) Handle

func (k *KeygenSimple) Handle(msg string) (bool, []string, error)

func (*KeygenSimple) Init

func (k *KeygenSimple) Init() []string

func (*KeygenSimple) Output

func (k *KeygenSimple) Output() *string

type OfflineStage

type OfflineStage struct {
	// contains filtered or unexported fields
}

func NewOfflineStage

func NewOfflineStage(msgHash string, i int, sL []int, n int, localKey string, incoming <-chan string, outgoing chan<- string) *OfflineStage

func (*OfflineStage) Free

func (k *OfflineStage) Free()

func (*OfflineStage) Initialize

func (k *OfflineStage) Initialize()

func (*OfflineStage) Output

func (k *OfflineStage) Output() *SignManual

func (*OfflineStage) ProcessLoop

func (k *OfflineStage) ProcessLoop()

type OfflineStageSimple

type OfflineStageSimple struct {
	// contains filtered or unexported fields
}

func NewOfflineStageSimple

func NewOfflineStageSimple(msgHash string, i int, sL []int, n int, localKey string) *OfflineStageSimple

func (*OfflineStageSimple) Free

func (k *OfflineStageSimple) Free()

func (*OfflineStageSimple) Handle

func (k *OfflineStageSimple) Handle(msg string) (bool, []string, error)

func (*OfflineStageSimple) Init

func (k *OfflineStageSimple) Init() []string

func (*OfflineStageSimple) Output

func (k *OfflineStageSimple) Output() *SignManual

type PMArray

type PMArray []ProtocolMessage

func (PMArray) Len

func (a PMArray) Len() int

func (PMArray) Less

func (a PMArray) Less(i, j int) bool

func (PMArray) Swap

func (a PMArray) Swap(i, j int)

type ProtocolMessage

type ProtocolMessage struct {
	Sender   int         `json:"sender"`
	Receiver interface{} `json:"receiver"`
	Body     struct {
		Round1 interface{} `json:"Round1,omitempty"`
		Round2 interface{} `json:"Round2,omitempty"`
		Round3 interface{} `json:"Round3,omitempty"`
		Round4 interface{} `json:"Round4,omitempty"`
		M1     interface{} `json:"M1,omitempty"`
		M2     interface{} `json:"M2,omitempty"`
		M3     interface{} `json:"M3,omitempty"`
		M4     interface{} `json:"M4,omitempty"`
		M5     interface{} `json:"M5,omitempty"`
		M6     interface{} `json:"M6,omitempty"`
	} `json:"body"`
}

type SignManual

type SignManual struct {
	// contains filtered or unexported fields
}

func NewSignManual

func NewSignManual(i int, n int, state unsafe.Pointer) *SignManual

func (*SignManual) Complete

func (k *SignManual) Complete(partialSigs []string) *string

func (*SignManual) Free

func (k *SignManual) Free()

func (*SignManual) GetPartialSignature

func (k *SignManual) GetPartialSignature() *string

type Signature

type Signature struct {
	R struct {
		Curve  string `json:"curve"`
		Scalar []int  `json:"scalar"`
	} `json:"r"`
	S struct {
		Curve  string `json:"curve"`
		Scalar []int  `json:"scalar"`
	} `json:"s"`
	Recid int `json:"recid"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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