Update sectorbuilder
This commit is contained in:
parent
c550e030b1
commit
2a695611d5
2
extern/go-bls-sigs
vendored
2
extern/go-bls-sigs
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 10fef3cbfa8670d9e9cdffb0cd8dfd4f6f6fef07
|
Subproject commit 98479d3c79620f18783da0c2c6a15f8b8eb4fa2e
|
2
extern/go-sectorbuilder
vendored
2
extern/go-sectorbuilder
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 06775780d8e4db7ba123a7c76073e10d7785b076
|
Subproject commit e95a86c6dac7376dc78550f253ed002455553997
|
@ -140,7 +140,6 @@ func VerifySeal(sectorSize uint64, commR, commD []byte, proverID address.Address
|
|||||||
copy(commDa[:], commD)
|
copy(commDa[:], commD)
|
||||||
copy(ticketa[:], ticket)
|
copy(ticketa[:], ticket)
|
||||||
copy(seeda[:], seed)
|
copy(seeda[:], seed)
|
||||||
seeda[31] = 0 // Temp Fr hack
|
|
||||||
proverIDa := addressToProverID(proverID)
|
proverIDa := addressToProverID(proverID)
|
||||||
|
|
||||||
return sectorbuilder.VerifySeal(sectorSize, commRa, commDa, proverIDa, ticketa, seeda, sectorID, proof)
|
return sectorbuilder.VerifySeal(sectorSize, commRa, commDa, proverIDa, ticketa, seeda, sectorID, proof)
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
const sectorSize = 1024
|
const sectorSize = 1024
|
||||||
|
|
||||||
func TestSealAndVerify(t *testing.T) {
|
func TestSealAndVerify(t *testing.T) {
|
||||||
t.Skip("this is slow")
|
//t.Skip("this is slow")
|
||||||
build.SectorSizes = []uint64{sectorSize}
|
build.SectorSizes = []uint64{sectorSize}
|
||||||
|
|
||||||
if err := build.GetParams(true); err != nil {
|
if err := build.GetParams(true); err != nil {
|
||||||
@ -69,7 +69,7 @@ func TestSealAndVerify(t *testing.T) {
|
|||||||
|
|
||||||
seed := sectorbuilder.SealSeed{
|
seed := sectorbuilder.SealSeed{
|
||||||
BlockHeight: 15,
|
BlockHeight: 15,
|
||||||
TicketBytes: [32]byte{0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 8, 7, 6, 45, 3, 2, 1, 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 0},
|
TicketBytes: [32]byte{0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 8, 7, 6, 45, 3, 2, 1, 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, },
|
||||||
}
|
}
|
||||||
|
|
||||||
sco, err := sb.SealCommit(sid, seed)
|
sco, err := sb.SealCommit(sid, seed)
|
||||||
|
@ -143,7 +143,6 @@ func (s *Store) SealPreCommit(ctx context.Context, sectorID uint64) (sectorbuild
|
|||||||
func (s *Store) SealComputeProof(ctx context.Context, sectorID uint64, height uint64, rand []byte) ([]byte, error) {
|
func (s *Store) SealComputeProof(ctx context.Context, sectorID uint64, height uint64, rand []byte) ([]byte, error) {
|
||||||
var tick [32]byte
|
var tick [32]byte
|
||||||
copy(tick[:], rand)
|
copy(tick[:], rand)
|
||||||
tick[31] = 0
|
|
||||||
|
|
||||||
sco, err := s.sb.SealCommit(sectorID, sectorbuilder.SealSeed{
|
sco, err := s.sb.SealCommit(sectorID, sectorbuilder.SealSeed{
|
||||||
BlockHeight: height,
|
BlockHeight: height,
|
||||||
|
Loading…
Reference in New Issue
Block a user