garbled_pool

package
v0.0.0-...-f3f2e40 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Il *[]byte
	// we dont return bytes of tt because we gonna be streaming the file
	// directly into the HTTP response to save memory
	TtFile *os.File
	Dt     *[]byte
}

Blob is what is returned when gc is read from disk

type GarbledPool

type GarbledPool struct {

	// Circuits contains metainfo for each circuit. Circuit count starts from 1
	Circuits []*meta.Circuit

	sync.Mutex
	// contains filtered or unexported fields
}

func (*GarbledPool) GetBlobs

func (g *GarbledPool) GetBlobs(c6Count int) [][]Blob

returns 1 garbling of each circuit and c5Count garblings for circuit 5

func (*GarbledPool) Init

func (g *GarbledPool) Init(noSandbox bool)

Jump to

Keyboard shortcuts

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