Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slips
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
slips
Commits
86b4f3f7
Commit
86b4f3f7
authored
Jul 23, 2018
by
Tomas Susanka
Committed by
Pavol Rusnak
Jul 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slip-0039: no index/threshold encoding (#164)
parent
6428068a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
slip-0039.md
slip-0039.md
+1
-11
No files found.
slip-0039.md
View file @
86b4f3f7
...
...
@@ -45,17 +45,7 @@ From this value, every byte is mapped to the specified field in a little-endian
The index corresponds to the SSS part's
`x`
value (see the diagram above) and the SSS part is the corresponding
`y`
value.
Index and threshold are encoding using the following scheme (convert from bits to decimal and add 1):
| 5-bit value | index/threshold value |
|-------------|-----------------------|
| 00000 | 1 |
| 00001 | 2 |
| 00010 | 3 |
| ... | ... |
| 11101 | 30 |
| 11110 | 31 |
| 11111 | 32 |
Index and threshold are encoded as 5-bit integers and the value 00000 is considered as invalid in both cases.
The checksum field is a checksum of the whole share (i.e. index, threshold, SSS part).
...
...
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