Commit 86b4f3f7 authored by Tomas Susanka's avatar Tomas Susanka Committed by Pavol Rusnak

slip-0039: no index/threshold encoding (#164)

parent 6428068a
...@@ -45,17 +45,7 @@ From this value, every byte is mapped to the specified field in a little-endian ...@@ -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. 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): Index and threshold are encoded as 5-bit integers and the value 00000 is considered as invalid in both cases.
| 5-bit value | index/threshold value |
|-------------|-----------------------|
| 00000 | 1 |
| 00001 | 2 |
| 00010 | 3 |
| ... | ... |
| 11101 | 30 |
| 11110 | 31 |
| 11111 | 32 |
The checksum field is a checksum of the whole share (i.e. index, threshold, SSS part). The checksum field is a checksum of the whole share (i.e. index, threshold, SSS part).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment