ballot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 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 Ballot

type Ballot struct {
	Root          string                     `json:"root"`
	NullifierHash string                     `json:"nullifier_hash"`
	Proof         *externalVerif.CircomProof `json:"proof"`
	PublicSignal  []string                   `json:"public_signal"` //root, nullifiers_hash, signal_hash, external_nullifier
}

Ballot ...

func NewBallot

func NewBallot(proof string) (*Ballot, error)

NewBallot ...

func (*Ballot) Byte

func (b *Ballot) Byte() ([]byte, error)

Byte ...

func (*Ballot) Hash

func (b *Ballot) Hash() *Hash

Hash ...

func (*Ballot) JSON

func (b *Ballot) JSON() (string, error)

JSON .

func (*Ballot) NullifierHashHex

func (b *Ballot) NullifierHashHex() NullifierHashHex

NullifierHashHex ...

type Hash

type Hash []byte

Hash ...

func (Hash) Byte

func (h Hash) Byte() []byte

Byte ...

func (Hash) Hex

func (h Hash) Hex() HashHex

Hex ...

type HashHex

type HashHex string

HashHex ...

type Map

type Map map[NullifierHashHex]*Ballot

Map ...

func NewMap

func NewMap() Map

NewMap ...

type NullifierHashHex

type NullifierHashHex string

NullifierHashHex ...

Jump to

Keyboard shortcuts

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