README.md: add newlines
This commit is contained in:
parent
bc02806bce
commit
d97d867579
32
README.md
32
README.md
|
@ -77,16 +77,14 @@ is assumed.
|
||||||
A nonce **must** be used only once. Either only one VK_pub is announced per MVK ever and nonce is missing,
|
A nonce **must** be used only once. Either only one VK_pub is announced per MVK ever and nonce is missing,
|
||||||
or for every MVK announcement, the nonce has to be **unique** or **true random** bytes.
|
or for every MVK announcement, the nonce has to be **unique** or **true random** bytes.
|
||||||
|
|
||||||
```
|
sharedkey = sha256(sha256(MVK_pub | nonce))
|
||||||
sharedkey = sha256(sha256(MVK_pub | nonce))
|
xornonce[24] = sha256(sharedkey | nonce)[0:24]
|
||||||
xornonce[24] = sha256(sharedkey | nonce)[0:24]
|
|
||||||
|
|
||||||
sig[64] = crypto_sign(VK_pub, MKV)
|
sig[64] = crypto_sign(VK_pub, MKV)
|
||||||
msg[96] = VK_pub || sig
|
msg[96] = VK_pub || sig
|
||||||
cipher[96] = crypto_stream_xor(msg, xornonce, sharedkey)
|
cipher[96] = crypto_stream_xor(msg, xornonce, sharedkey)
|
||||||
```
|
|
||||||
|
|
||||||
clients may flush T1, if T2 does not follow in the next 20 blocks
|
clients may flush T1, if T2 does not follow in the next 20 blocks
|
||||||
clients may flush T2, if T1 does not follow in the next 20 blocks
|
clients may flush T2, if T1 does not follow in the next 20 blocks
|
||||||
|
|
||||||
| | OP | Chunk1 | Chunk2 | Chunk3 |
|
| | OP | Chunk1 | Chunk2 | Chunk3 |
|
||||||
|
@ -97,16 +95,14 @@ clients may flush T2, if T1 does not follow in the next 20 blocks
|
||||||
| Size | 1 | 3 | 49 | 13 |
|
| Size | 1 | 3 | 49 | 13 |
|
||||||
|
|
||||||
### MVK announce next subkey VK_n+1 0xECA[3,4] - A-nnounce
|
### MVK announce next subkey VK_n+1 0xECA[3,4] - A-nnounce
|
||||||
```
|
sharedkey = sha256(sha256(VK_n_pub))
|
||||||
sharedkey = sha256(sha256(VK_n_pub))
|
nonce[24] = sha256(sharedkey)[0:24]
|
||||||
nonce[24] = sha256(sharedkey)[0:24]
|
|
||||||
|
|
||||||
sig[64] = crypto_sign(VK_n+1_pub, MKV)
|
sig[64] = crypto_sign(VK_n+1_pub, MKV)
|
||||||
msg[96] = VK_n+1_pub || sig
|
msg[96] = VK_n+1_pub || sig
|
||||||
cipher[96] = crypto_stream_xor(msg, nonce, sharedkey)
|
cipher[96] = crypto_stream_xor(msg, nonce, sharedkey)
|
||||||
```
|
|
||||||
|
|
||||||
clients may flush T1, if T2 does not follow in the next 20 blocks
|
clients may flush T1, if T2 does not follow in the next 20 blocks
|
||||||
clients may flush T2, if T1 does not follow in the next 20 blocks
|
clients may flush T2, if T1 does not follow in the next 20 blocks
|
||||||
|
|
||||||
| | OP | Chunk1 | Chunk2 | Chunk3 | Chunk4 |
|
| | OP | Chunk1 | Chunk2 | Chunk3 | Chunk4 |
|
||||||
|
@ -117,12 +113,10 @@ clients may flush T2, if T1 does not follow in the next 20 blocks
|
||||||
| Size | 1 | 3 | 49 | 13 | 13 |
|
| Size | 1 | 3 | 49 | 13 | 13 |
|
||||||
|
|
||||||
### Public Doc or other key OK sign 0xEC5[1,2]
|
### Public Doc or other key OK sign 0xEC5[1,2]
|
||||||
```
|
sign[64] = Sign_Key('Sign ' || sha256(Doc/OK))
|
||||||
sign[64] = Sign_Key('Sign ' || sha256(Doc/OK))
|
|
||||||
data = optional data (max 2*19 bytes)
|
data = optional data (max 2*19 bytes)
|
||||||
```
|
|
||||||
|
|
||||||
clients may flush T1, if T2 does not follow in the next 20 blocks
|
clients may flush T1, if T2 does not follow in the next 20 blocks
|
||||||
clients may flush T2, if T1 does not follow in the next 20 blocks
|
clients may flush T2, if T1 does not follow in the next 20 blocks
|
||||||
|
|
||||||
| | OP | Chunk1 | Chunk2 | Chunk3 | Chunk4 |
|
| | OP | Chunk1 | Chunk2 | Chunk3 | Chunk4 |
|
||||||
|
|
Loading…
Reference in a new issue