Skip to content

Commit

Permalink
[FOLD] Move HMAC to the end of receipt
Browse files Browse the repository at this point in the history
Clarify HMAC message
  • Loading branch information
wilsonianb committed Mar 20, 2020
1 parent 694f2d7 commit 8df9304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0029-stream/0029-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ The `Receipt` MUST contain the following fields encoded using the [Octet Encodin

| Field | Type | Description |
|---|---|---|
| HMAC | UInt256 | HMAC-SHA256 over all other fields using the 32 byte Receipt Secret, which is pre-shared between the verifying party and the receiver. |
| Receipt Nonce | UInt128 | A random nonce pre-shared between the verifying party and the receiver used to identify the STREAM connection. |
| Stream ID | UInt8 | Identifier of the stream this receipt refers to. |
| Total Received | UInt64 | Total amount, denominated in the units of the receiver, that the receiver has received on this stream thus far. |
| Stream Start Time | UInt64 | A UNIX timestamp referring to the time that the stream was established at the receiver. |
| HMAC | UInt256 | HMAC-SHA256 using the 32 byte Receipt Secret, which is pre-shared between the verifying party and the receiver. The HMAC message is the concatenation of all other receipt fields, in the order listed above. |


### 5.4. Error Codes
Expand Down

0 comments on commit 8df9304

Please sign in to comment.