Documentation
¶
Index ¶
- Constants
- func CommitMiMC(msg []byte) []byte
- func EditCheckPhd(api frontend.API, OldRecord []frontend.Variable, NewRecord []frontend.Variable, ...)
- func EncryptMimcFr(key fr.Element, message fr.Element) fr.Element
- func NBits(field *big.Int, inputs []*big.Int, results []*big.Int) error
- func StringToAscii(input string) []int64
- func Validate(api frontend.API, content PhDProfile, record []frontend.Variable, ...)
- type Array
- type CovidLimit
- type CovidRecord
- type CovidTest
- type Dict
- type Integer
- type IsEmptyInterface
- type MiMC
- type PhDProfile
- type PhdLimit
- type Publication
- type String
- type TimeRange
- type Vaccine
Constants ¶
View Source
const (
BlockSize = fr.Bytes // BlockSize size that mimc consumes
)
View Source
const DUMMY = 10000
View Source
const MaxKeyLen = 25
View Source
const MergeLen = 31
View Source
const OneYearUnix = 31536000
Variables ¶
This section is empty.
Functions ¶
func CommitMiMC ¶
func EditCheckPhd ¶
func NBits ¶
NBits returns the first bits of the input. The number of returned bits is defined by the length of the results slice.
func StringToAscii ¶
Types ¶
type Array ¶
type Array []IsEmptyInterface // Each element is a Integer or String
type CovidLimit ¶
type CovidRecord ¶
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
Each var is a UTF-8 ASCII character
type IsEmptyInterface ¶
type MiMC ¶
type MiMC struct {
// contains filtered or unexported fields
}
MiMC contains the params of the Mimc hash func and the curves on which it is implemented
func (*MiMC) Sum ¶
Hash hash (in r1cs form) using Miyaguchi–Preneel: https://en.wikipedia.org/wiki/One-way_compression_function The XOR operation is replaced by field addition. See github.com/consensys/gnark-crypto for reference implementation.
type PhDProfile ¶
type PhDProfile struct { Status String //One of the Set ProgramYear Integer //Number within range StudentID String //meet format Publications []Publication //Append only Duration TimeRange //time sensitive }
Dict
type Publication ¶
Dict
Click to show internal directories.
Click to hide internal directories.