Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
interface-test
Commits
e3979676
Commit
e3979676
authored
Oct 09, 2021
by
董子豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified format
parent
f015e2ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
18 deletions
+17
-18
proofs.go
extern/filecoin-ffi/proofs.go
+15
-16
types.go
extern/filecoin-ffi/types.go
+1
-1
seal_api.go
seal/seal_api.go
+1
-1
No files found.
extern/filecoin-ffi/proofs.go
View file @
e3979676
...
...
@@ -7,11 +7,11 @@ package ffi
// #include "./filcrypto.h"
import
"C"
import
(
"encoding/binary"
"math"
"os"
"runtime"
"unsafe"
"math"
"encoding/binary"
// "fmt"
commcid
"github.com/filecoin-project/go-fil-commcid"
...
...
@@ -20,8 +20,8 @@ import (
"github.com/pkg/errors"
"golang.org/x/xerrors"
"github.com/filecoin-project/filecoin-ffi/generated"
spproof
"fil_integrate/build/proof"
"github.com/filecoin-project/filecoin-ffi/generated"
)
// VerifySeal returns true if the sealing operation from which its inputs were
...
...
@@ -188,7 +188,7 @@ func VerifyWindowPoSt(info spproof.WindowPoStVerifyInfo) (bool, error) {
return
resp
.
IsValid
,
nil
}
func
VerifyAggregateWindowPostProofs
(
aggregateInfo
spproof
.
AggregateWindowPostInfos
)(
bool
,
error
)
{
func
VerifyAggregateWindowPostProofs
(
aggregateInfo
spproof
.
AggregateWindowPostInfos
)
(
bool
,
error
)
{
if
len
(
aggregateInfo
.
ChallengedSectors
)
==
0
{
return
false
,
xerrors
.
New
(
"no seal verify infos"
)
}
...
...
@@ -222,16 +222,16 @@ func VerifyAggregateWindowPostProofs(aggregateInfo spproof.AggregateWindowPostIn
}
resp
:=
generated
.
FilVerifyAggregateWindowPoStProofs
(
sp
,
rap
,
proverID
,
aggregateInfo
.
AggregateProof
.
ProofBytes
,
uint
(
len
(
aggregateInfo
.
AggregateProof
.
ProofBytes
)),
randomnesses
,
uint
(
len
(
randomnesses
)),
filPublicReplicaInfos
,
aggregateInfo
.
SectorCount
,
uint
(
len
(
aggregateInfo
.
SectorCount
)))
sp
,
rap
,
proverID
,
aggregateInfo
.
AggregateProof
.
ProofBytes
,
uint
(
len
(
aggregateInfo
.
AggregateProof
.
ProofBytes
)),
randomnesses
,
uint
(
len
(
randomnesses
)),
filPublicReplicaInfos
,
aggregateInfo
.
SectorCount
,
uint
(
len
(
aggregateInfo
.
SectorCount
)))
resp
.
Deref
()
defer
generated
.
FilDestroyVerifyAggregateSealResponse
(
resp
)
...
...
@@ -541,7 +541,6 @@ func SealCommitPhase2(
return
copyBytes
(
resp
.
ProofPtr
,
resp
.
ProofLen
),
nil
}
// aggregateInfo{
// minerID,
// RegisteredSealProof || PoStProof,
...
...
@@ -806,7 +805,7 @@ func AggregateWindowPoStProofs(aggregateInfo spproof.AggregateWindowPostInfos, p
}
return
spproof
.
PoStProof
{
PoStProof
:
aggregateInfo
.
PoStType
,
PoStProof
:
aggregateInfo
.
PoStType
,
ProofBytes
:
copyBytes
(
resp
.
ProofPtr
,
resp
.
ProofLen
),
},
nil
...
...
extern/filecoin-ffi/types.go
View file @
e3979676
...
...
@@ -5,9 +5,9 @@ import (
"encoding/json"
"sort"
spproof
"fil_integrate/build/proof"
"github.com/filecoin-project/go-state-types/abi"
"github.com/ipfs/go-cid"
spproof
"fil_integrate/build/proof"
)
// BLS
...
...
seal/seal_api.go
View file @
e3979676
...
...
@@ -192,7 +192,7 @@ func DecodePiece(
}
type
Sealer
struct
{
sectors
SectorManager
sectors
SectorManager
sortedPieces
[]
storage
.
Piece
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment