risc0 / risc0

RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture.

Home Page:https://risczero.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Expose a new function for FileSegmentRef

SchmErik opened this issue · comments

Feature

At the time of writing, we don't allow users to call FileSegmentRef::new(...) because we don't export the SegmentPath type. By making SegmentPath visible or better - creating a second new function that takes PathBuf will allow users to create instances of FileSegmentRef.

Motivation

Some users implement their own version of FileSegmentRef and this will allow them to use the risc0-zkvm's.

Implementation

This was described in the first section

Expose nullFilesegment ref