Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Komodo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoon
Komodo
Merge requests
!184
Draft: Doc joss
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Doc joss
doc-joss
into
main
Overview
3
Commits
19
Pipelines
10
Changes
9
Closed
PERENNOU Tanguy
requested to merge
doc-joss
into
main
5 months ago
Overview
3
Commits
19
Pipelines
10
Changes
9
Expand
0
0
Merge request reports
Compare
main
version 9
246a6068
2 months ago
version 8
edc57b28
2 months ago
version 7
d8df6d3c
2 months ago
version 6
4e30a814
5 months ago
version 5
8c30c409
5 months ago
version 4
72125d77
5 months ago
version 3
36a417e8
5 months ago
version 2
d8461ee2
5 months ago
version 1
e9eeeaef
5 months ago
main (base)
and
latest version
latest version
95260739
19 commits,
2 months ago
version 9
246a6068
18 commits,
2 months ago
version 8
edc57b28
17 commits,
2 months ago
version 7
d8df6d3c
15 commits,
2 months ago
version 6
4e30a814
9 commits,
5 months ago
version 5
8c30c409
8 commits,
5 months ago
version 4
72125d77
7 commits,
5 months ago
version 3
36a417e8
6 commits,
5 months ago
version 2
d8461ee2
5 commits,
5 months ago
version 1
e9eeeaef
4 commits,
5 months ago
9 files
+
1166
−
219
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
examples/semi_avid.rs
+
13
−
5
Options
@@ -24,13 +24,21 @@ where
let
mut
rng
=
test_rng
();
// the code parameters and the data to manipulate
let
element_size
=
(
F
::
MODULUS_BIT_SIZE
as
usize
)
/
8
;
let
(
k
,
n
)
=
(
3
,
6_usize
);
let
bytes
=
include_bytes!
(
"../assets/dragoon_133x133.png"
)
.to_vec
();
eprintln!
(
"loaded {} bytes of data"
,
bytes
.len
());
// Semi-AVID needs a _trusted setup_ to prove and verify blocks of encoded data
eprint!
(
"creating trusted setup... "
);
let
powers
=
setup
::
<
F
,
G
>
(
bytes
.len
(),
&
mut
rng
)
?
;
eprintln!
(
"loaded |F|={} bytes of data"
,
bytes
.len
());
// Semi-AVID needs a _trusted setup_ to prove and verify blocks of encoded
// data
let
min_setup_size
=
bytes
.len
()
/
(
k
*
element_size
);
eprint!
(
"creating trusted setup for |F|={}, k={}, |E|={} ... "
,
bytes
.len
(),
k
,
element_size
);
let
powers
=
setup
::
<
F
,
G
>
(
min_setup_size
,
&
mut
rng
)
?
;
eprintln!
(
"done"
);
// encode and prove the data with a _random_ encoding
Loading