winningpost

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package winningpost is the Stage B scaffold for a pure-Go WinningPoSt verifier.

Trust model:

  • removes the filecoin-ffi dependency from verification path #1
  • keeps all verification logic in Go
  • does not attempt proving, parameter generation, or sector challenges yet

Scope:

  • verify only
  • proving remains out of scope
  • this package is a placeholder for the future Groth16/BLS12-381 path

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = notImplementedError{}

Functions

func Verify

func Verify(info WinningPoStVerifyInfo) (bool, error)

Verify is the pure-Go scaffold entrypoint.

TODO:

  • derive the winning post challenge from randomness + prover + tipset context
  • assemble public inputs from challenged sectors and proof metadata
  • load the correct verifying key for the registered PoSt proof type
  • run the Groth16 pairing check over BLS12-381
  • validate Poseidon-based commitments / transcript inputs as required

This stage intentionally does not verify anything yet.

Types

type PoStProof

type PoStProof = prooftypes.PoStProof

type SectorInfo

type SectorInfo = prooftypes.SectorInfo

type WinningPoStVerifyInfo

type WinningPoStVerifyInfo = prooftypes.WinningPoStVerifyInfo

Jump to

Keyboard shortcuts

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