[T4] Update transaction schematic (#1712)

* Update transaction schematic

* Fix typo
This commit is contained in:
jaspervdm 2018-10-10 12:28:36 +02:00 committed by Yeastplume
parent 6c8c483172
commit e69b2ace70
2 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 154 KiB

View file

@ -2,7 +2,7 @@
title
**Current Grin Tranaction Workflow**
Accurate as of Aug 1, 2018 - Master branch only
Accurate as of Oct 10, 2018 - Master branch only
end title
actor "Sender" as sender
@ -44,7 +44,7 @@ note right of recipient
4: Calculate message **M** = **fee | lock_height **
5: Choose random nonce **kR** (private scalar)
6: Multiply **xR** and **kR** by generator G to create public curve points **xRG** and **kRG**
7: Compute Schnorr challenge **e** = SHA256(**M** | **kRG** + **kSG**)
7: Compute Schnorr challenge **e** = SHA256(**kRG** + **kSG** | **xRG** + **xSG** | **M**)
8: Compute Recipient Schnorr signature **sR** = **kR** + **e** * **xR**
9: Add **sR, xRG, kRG** to **Slate**
10: Create wallet output function **rF** that stores **receiver_output** in wallet with status "Unconfirmed"
@ -61,10 +61,10 @@ end
== Finalize Transaction ==
note left of sender
1: Calculate message **M** = **fee | lock_height **
2: Compute Schnorr challenge **e** = SHA256(**M** | **kRG** + **kSG**)
2: Compute Schnorr challenge **e** = SHA256(**kRG** + **kSG** | **xRG** + **xSG** | **M**)
3: Verify **sR** by verifying **kRG** + **e** * **xRG** = **sRG**
4: Compute Sender Schnorr signature **sS** = **kS** + **e** * **xS**
5: Calculate final signature **s** = (**sS**+**sR**, **kSG**+**kRG**)
5: Calculate final signature **s** = (**kSG**+**kRG**, **sS**+**sR**)
6: Calculate public key for **s**: **xG** = **xRG** + **xSG**
7: Verify **s** against excess values in final transaction using **xG**
8: Create Transaction Kernel Containing: