Last active
May 27, 2018 02:01
-
-
Save y-yu/11a0ce74c1225b3b0333e5e045f2ccbb to your computer and use it in GitHub Desktop.
Tumbler
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 characters
@startuml | |
autonumber | |
actor Alice | |
actor Tumbler | |
actor Bob | |
group on Blockchain | |
Tumbler -> Bob : 1BTCを供託する | |
note right | |
パズルを解けるならば | |
1BTCを得る | |
end note | |
end | |
Bob -> Bob : パズルをブラインドする | |
Bob -> Alice : ブラインドされたパズルを送信する | |
Alice -> Alice : パズルをブラインドする | |
note right | |
このとき、パズルは二重にブラインドされる | |
end note | |
group on Blockchain | |
Alice -> Tumbler : 1BTCを供託する | |
note right | |
ブラインドされたパズルを | |
解けるならば、1BTCを得る | |
end note | |
Tumbler --> Alice : ブラインドされたパズルに解答し、1BTCを得る | |
note left | |
ブラインドされたパズルの解答がブロックチェーンに | |
載るが、ブラインドされているためアリスにしか分からない | |
end note | |
end | |
Alice -> Alice : パズルの解答をアンブラインドする | |
note left | |
解答にはまだボブのブラインドがあるため、 | |
アリスにパズルの解答は分からない | |
end note | |
Alice --> Bob : ブラインドされたバズルの解答を送信する | |
Bob -> Bob :ブラインドされたバズルの解答をアンブラインドする | |
group on Blockchain | |
Bob --> Tumbler : パズルに解答し、1BTCを得る | |
end | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment