Documentation
¶
Index ¶
- Constants
- func ConvertPtauToPhase1(ptau Ptau) (phase1 mpcsetup.Phase1, err error)
- func WritePhase1FromPtauFile(ptauFile *PtauFile, outputPath string) error
- type G1
- type G2
- type Header
- type HeaderGroth
- type NotGroth16
- type Ptau
- type PtauFile
- func (ptauFile *PtauFile) Close() error
- func (ptauFile *PtauFile) DomainSize() int
- func (ptauFile *PtauFile) ReadAlphaTauG1(out chan bn254.G1Affine) error
- func (ptauFile *PtauFile) ReadBetaG2() (bn254.G2Affine, error)
- func (ptauFile *PtauFile) ReadBetaTauG1(out chan bn254.G1Affine) error
- func (ptauFile *PtauFile) ReadTauG1(out chan bn254.G1Affine) error
- func (ptauFile *PtauFile) ReadTauG2(out chan bn254.G2Affine) error
- type PtauHeader
- type PtauPubKey
- type SectionSegment
- type Zkey
- type ZkeyHeader
Constants ¶
View Source
const BN254_FIELD_ELEMENT_SIZE = 32
in bytes
View Source
const GROTH_16_PROTOCOL_ID = uint32(1)
Variables ¶
This section is empty.
Functions ¶
func WritePhase1FromPtauFile ¶ added in v0.1.4
Types ¶
type HeaderGroth ¶
type HeaderGroth struct {
// contains filtered or unexported fields
}
type NotGroth16 ¶
type NotGroth16 struct {
Err error
}
func (*NotGroth16) Error ¶
func (r *NotGroth16) Error() string
type Ptau ¶
type Ptau struct { Header PtauHeader PTauPubKey PtauPubKey }
type PtauFile ¶ added in v0.1.4
type PtauFile struct { Header PtauHeader Sections [][]SectionSegment Reader *os.File }
func (*PtauFile) DomainSize ¶ added in v0.1.4
func (*PtauFile) ReadAlphaTauG1 ¶ added in v0.1.4
func (*PtauFile) ReadBetaG2 ¶ added in v0.1.4
func (*PtauFile) ReadBetaTauG1 ¶ added in v0.1.4
type PtauPubKey ¶
type SectionSegment ¶
type SectionSegment struct {
// contains filtered or unexported fields
}
type Zkey ¶
type Zkey struct { ZkeyHeader ZkeyHeader // contains filtered or unexported fields }
Incomplete (only extracts necessary fields for conversion to .ph1 format)
type ZkeyHeader ¶
type ZkeyHeader struct { ProtocolID uint32 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.