Last active
April 16, 2020 21:32
-
-
Save wilsonianb/b164080a6c1b62e0e2be11d41efb8b13 to your computer and use it in GitHub Desktop.
Revisions
-
wilsonianb revised this gist
Apr 16, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ReceiptV1 ::= SEQUENCE { totalReceived UInt64, -- HMAC-SHA256 using a 32 byte Secret -- The message is the concatenation of the 1 byte type/version (always 1) and all other fields, -- in the order listed above hmac UInt256 } -
wilsonianb revised this gist
Apr 16, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,6 @@ ReceiptV1 ::= SEQUENCE { totalReceived UInt64, -- HMAC-SHA256 using a 32 byte Secret -- The message is the concatenation of the 1 byte type/version and all other fields, in the order listed above hmac UInt256 } -
wilsonianb revised this gist
Apr 16, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,6 @@ ReceiptV1 ::= SEQUENCE { totalReceived UInt64, -- HMAC-SHA256 using a 32 byte Secret -- The message is the concatenation of the 1 byte type/version and all other fields, in the order listed above (NOT THE TYPE/VERSION) hmac UInt256 } -
wilsonianb created this gist
Apr 14, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ StreamReceipt ::= SEQUENCE { streamId VarUInt, receipt Receipt } RECEIPT ::= CLASS { &typeId UInt8 UNIQUE, &Type } WITH SYNTAX {&typeId &Type} ReceiptSet RECEIPT ::= { {1 ReceiptV1} } Receipt ::= SEQUENCE { type RECEIPT.&typeId ({ReceiptSet}), -- NON-Length-prefixed data data RECEIPT.&Type ({ReceiptSet}{@type}) } ReceiptV1 ::= SEQUENCE { nonce UInt128, streamId UInt8, totalReceived UInt64, -- HMAC-SHA256 using a 32 byte Secret -- The message is the concatenation of all other fields, in the order listed above (NOT THE TYPE/VERSION) hmac UInt256 }