blinding

package
v0.0.0-...-b276000 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blinder

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

func New

func New(keyReader func(int) (*BlindingKey, error)) *Blinder

func (*Blinder) KeyForDay

func (b *Blinder) KeyForDay(dayID int) (*BlindingKey, error)

func (*Blinder) Run

func (b *Blinder) Run(listenAddr string) error

func (*Blinder) ServeHTTP

func (b *Blinder) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type BlindingKey

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

func NewBlindingKey

func NewBlindingKey(masterKey string) *BlindingKey

func (*BlindingKey) Blind

func (bk *BlindingKey) Blind(values [][]byte) error

type BlindingRequest

type BlindingRequest struct {
	DayID  int
	Inputs []string
}

type BlindingResponse

type BlindingResponse struct {
	Outputs []string
}

type KeyReader

type KeyReader struct {
	Dir string
}

func (KeyReader) ReadKey

func (kr KeyReader) ReadKey(dayID int) (*BlindingKey, error)

Jump to

Keyboard shortcuts

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