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
b2628d86
Commit
b2628d86
authored
Aug 17, 2021
by
董子豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agg window post
parent
7138842d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
window_post.rs
...rn/rust-fil-proofs/filecoin-proofs/src/api/window_post.rs
+3
-5
No files found.
extern/rust-fil-proofs/filecoin-proofs/src/api/window_post.rs
View file @
b2628d86
...
@@ -253,7 +253,7 @@ pub fn aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
...
@@ -253,7 +253,7 @@ pub fn aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
post_config
:
&
PoStConfig
,
post_config
:
&
PoStConfig
,
randomnesses
:
&
[
ChallengeSeed
],
randomnesses
:
&
[
ChallengeSeed
],
commit_outputs
:
&
[
Vec
<
u8
>
],
commit_outputs
:
&
[
Vec
<
u8
>
],
partitions
:
usize
,
total_sector_count
:
usize
,
)
->
Result
<
AggregateSnarkProof
>
{
)
->
Result
<
AggregateSnarkProof
>
{
info!
(
"aggregate_window_post_proofs:start"
);
info!
(
"aggregate_window_post_proofs:start"
);
...
@@ -262,7 +262,7 @@ pub fn aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
...
@@ -262,7 +262,7 @@ pub fn aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
"cannot aggregate with empty outputs"
"cannot aggregate with empty outputs"
);
);
//
let partitions = get_partitions_for_window_post(total_sector_count, &post_config);
let
partitions
=
get_partitions_for_window_post
(
total_sector_count
,
&
post_config
);
let
verifying_key
=
get_post_verifying_key
::
<
Tree
>
(
&
post_config
)
?
;
let
verifying_key
=
get_post_verifying_key
::
<
Tree
>
(
&
post_config
)
?
;
let
mut
proofs
:
Vec
<
_
>
=
let
mut
proofs
:
Vec
<
_
>
=
commit_outputs
commit_outputs
...
@@ -317,7 +317,6 @@ pub fn aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
...
@@ -317,7 +317,6 @@ pub fn aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
proofs
.as_slice
(),
proofs
.as_slice
(),
)
?
;
)
?
;
let
aggregate_window_post_proofs_time
=
start_time
.elapsed
()
.as_millis
();
let
aggregate_window_post_proofs_time
=
start_time
.elapsed
()
.as_millis
();
println!
(
"aggregate proofs using {}"
,
aggregate_window_post_proofs_time
);
let
mut
aggregate_proof_bytes
=
Vec
::
new
();
let
mut
aggregate_proof_bytes
=
Vec
::
new
();
aggregate_proof
.write
(
&
mut
aggregate_proof_bytes
)
?
;
aggregate_proof
.write
(
&
mut
aggregate_proof_bytes
)
?
;
...
@@ -408,7 +407,6 @@ pub fn verify_aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
...
@@ -408,7 +407,6 @@ pub fn verify_aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
&
aggregate_proof
,
&
aggregate_proof
,
)
?
;
)
?
;
let
verify_aggregate_proofs_time
=
start_time
.elapsed
()
.as_millis
();
let
verify_aggregate_proofs_time
=
start_time
.elapsed
()
.as_millis
();
println!
(
"$$ verify aggregate proofs using {}"
,
verify_aggregate_proofs_time
);
info!
(
"end verifying aggregate proof"
);
info!
(
"end verifying aggregate proof"
);
info!
(
"verify_aggregate_window_post_proofs:finish"
);
info!
(
"verify_aggregate_window_post_proofs:finish"
);
...
@@ -416,7 +414,7 @@ pub fn verify_aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
...
@@ -416,7 +414,7 @@ pub fn verify_aggregate_window_post_proofs<Tree: 'static + MerkleTreeTrait>(
Ok
(
result
)
Ok
(
result
)
}
}
fn
get_window_post_inputs
<
Tree
:
'static
+
MerkleTreeTrait
>
(
pub
fn
get_window_post_inputs
<
Tree
:
'static
+
MerkleTreeTrait
>
(
post_config
:
&
PoStConfig
,
post_config
:
&
PoStConfig
,
replicas
:
&
BTreeMap
<
SectorId
,
PublicReplicaInfo
>
,
replicas
:
&
BTreeMap
<
SectorId
,
PublicReplicaInfo
>
,
randomness
:
&
ChallengeSeed
,
randomness
:
&
ChallengeSeed
,
...
...
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