Skip to content

Commit

Permalink
can derive proof partitions from PoRep proof len
Browse files Browse the repository at this point in the history
  • Loading branch information
laser committed Apr 29, 2019
1 parent e115ba4 commit fbd4d92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions proofs/rustverifier.go
Expand Up @@ -52,15 +52,9 @@ func (rp *RustVerifier) VerifySeal(req VerifySealRequest) (VerifySealResponse, e
sectorIDCbytes := C.CBytes(req.SectorID[:])
defer C.free(sectorIDCbytes)

ppp, err := req.Proof.ProofPartitions()
if err != nil {
return VerifySealResponse{}, errors.Wrap(err, "failed to get proof partitions")
}

// a mutable pointer to a VerifySealResponse C-struct
resPtr := (*C.VerifySealResponse)(unsafe.Pointer(C.verify_seal(
C.uint64_t(req.SectorSize.Uint64()),
C.uint8_t(ppp.Int()),
(*[32]C.uint8_t)(commRCBytes),
(*[32]C.uint8_t)(commDCBytes),
(*[32]C.uint8_t)(commRStarCBytes),
Expand Down

0 comments on commit fbd4d92

Please sign in to comment.