Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port Code machine #7

Closed
warner opened this issue Apr 3, 2018 · 1 comment
Closed

port Code machine #7

warner opened this issue Apr 3, 2018 · 1 comment

Comments

@warner
Copy link
Collaborator

warner commented Apr 3, 2018

code

https://github.com/warner/magic-wormhole/blob/0.10.5/src/wormhole/_code.py

The Code machine is responsible for acquiring the wormhole code, in one of three modes corresponding to the API calls: w.allocate_code(), w.set_code(), and w.input_code(). The set_code method is trivial, and the other two delegate to the Allocator and Input respectively.

The input_code process is split into phases: first the nameplate is set, then the words are set, so there are separate input events for each phase.

When the code is complete, it notifies the Key machine (which uses it as input to the PAKE function) and the Boss (which notifies the application, which is most important when using allocate_code so it knows what to display to the user for transcription.

@warner
Copy link
Collaborator Author

warner commented Jul 4, 2019

This port looks good now.

@warner warner closed this as completed Jul 4, 2019
piegamesde added a commit that referenced this issue Jan 11, 2021
piegamesde added a commit that referenced this issue Jan 11, 2021
The method renames were forgotten to update in examples and test code (yeah, we don't run that often enough)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant