neff

package
v0.4.7-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Actor allows one to perform SHUFFLE operations like shuffling a list of ElGamal pairs and verify a shuffle

- implements shuffle.Actor

func (*Actor) Shuffle

func (a *Actor) Shuffle(formID []byte) error

Shuffle must be called by ONE of the actor to shuffle the list of ElGamal pairs. Each node represented by a player must first execute Listen().

type Handler

type Handler struct {
	mino.UnsupportedHandler
	// contains filtered or unexported fields
}

Handler represents the RPC executed on each node

- implements mino.Handler

func NewHandler

func NewHandler(me mino.Address, service ordering.Service, p pool.Pool,
	txmngr txn.Manager, shuffleSigner crypto.Signer, ctx serde.Context,
	formFac serde.Factory) *Handler

NewHandler creates a new handler

func (*Handler) Stream

func (h *Handler) Stream(out mino.Sender, in mino.Receiver) error

Stream implements mino.Handler. It allows one to stream messages to the players.

type NeffShuffle

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

NeffShuffle allows one to initialize a new SHUFFLE protocol.

- implements shuffle.SHUFFLE

func NewNeffShuffle

func NewNeffShuffle(m mino.Mino, s ordering.Service, p pool.Pool,
	blocks *blockstore.InDisk, formFac serde.Factory, signer crypto.Signer) *NeffShuffle

NewNeffShuffle returns a new NeffShuffle factory.

func (NeffShuffle) Listen

func (n NeffShuffle) Listen(txmngr txn.Manager) (shuffle.Actor, error)

Listen implements shuffle.SHUFFLE. It must be called on each node that participates in the SHUFFLE. Creates the RPC.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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