INTERACTIVE PROEP IS ALIVE

This commit is contained in:
Łukasz Magiera
2019-11-02 16:07:26 +01:00
parent 3e515ab24c
commit c550e030b1
5 changed files with 6 additions and 4 deletions
+1
View File
@@ -140,6 +140,7 @@ func VerifySeal(sectorSize uint64, commR, commD []byte, proverID address.Address
copy(commDa[:], commD)
copy(ticketa[:], ticket)
copy(seeda[:], seed)
seeda[31] = 0 // Temp Fr hack
proverIDa := addressToProverID(proverID)
return sectorbuilder.VerifySeal(sectorSize, commRa, commDa, proverIDa, ticketa, seeda, sectorID, proof)
+1 -1
View File
@@ -69,7 +69,7 @@ func TestSealAndVerify(t *testing.T) {
seed := sectorbuilder.SealSeed{
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, 8},
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},
}
sco, err := sb.SealCommit(sid, seed)