-
Notifications
You must be signed in to change notification settings - Fork 62
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
Can't run saw-remote-api using Docker image #1051
Comments
Can you say a little more about your setup? Specifically I'm curious about the following at the moment:
Perusing around the repositories and Docker hub with what you posted above in mind, I think you may have (reasonably) expected some of the scripts in the |
(As an aside: apologies for there not yet being a README or similar for setting up and running |
Sure! You're definitely right, though -- I was looking at an old version of the
|
Thanks! That will definitely be helpful! |
Below are some steps that worked locally for me with the StepsIf needed, identify the docker image of interest and give it a cute name (
Clone the
Apply a small patch to change some of the test files to use the HTTP server and refer to file locations in the docker image.
Let python know where to look for
Go to the test directory, launch the server, and copy the salsa20 files into the docker container so the server can load them.
Run the script to interact with the SAW server.
If everything worked out, you should see:
|
Thanks so much! I was able to get it working locally following your instructions, and I'm going to keep playing around with it. One other question - is there something I have to do in order to run the verification again? I tried to change a |
I believe that error is complaining that you’re reloading files which are
already loaded on the server when you run the script again. I can look into
it more in a bit... it seems like either there should be a graceful way to
avoid that on the server’s end (I.e., just don’t load the file again if
it’s already loaded) or if not for some reason, the reported error should
be more helpful at a minimum. Anyway, you could try commenting out the load
statements as a workaround and see if that works.
…On Mon, Feb 1, 2021 at 6:52 AM michaelabernardo ***@***.***> wrote:
Thanks so much! I was able to get it working locally following your
instructions, and I'm going to keep playing around with it.
One other question - is there something I have to do in order to run the
verification again? I tried to change a <<< to a >>> in the salsa20.py
script so I could see what would happen if the proof fails, and I got this
error:
saw.exceptions.CryptolError: error: Attempted to register the following
name twice: cryptol:/Salsa20/quarterround
And now even if I change the script back to the original, I still get that
error.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1051 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA36B2UOKAI5WOJVU53I6ILS425ZPANCNFSM4WZDZJLQ>
.
|
The aforementioned possible workaround does not work around the issue =\ I'll have to prod more here and report back. |
I think this issue is resolved. Please don't hesitate to re-open or open a new issue if I'm mistaken. Also FYI, we've moved the development of the python clients for cryptol and saw here (at least for the time being): https://github.com/GaloisInc/galois-py-toolkit |
As an update to this resolution, the experiment of having the python client live in a separate repository ( The SAW Python client is now located here: https://github.com/GaloisInc/saw-script/tree/master/saw-remote-api/python I tried to add enough to the README in that directory to explain how to get things up and running, but please reach out and/or file issues if things are not clear or seem broken. In case it is useful, note this bash script we are using to run several verification scripts in sequence against a single running Docker container instance in CI. |
The
Currently the -v is |
Indeed - thanks for pointing it out! Just created a fix PR. |
Hi there!
I've been trying to set up the Salsa20 example you have for saw-remote-api using the
galoisinc/saw-remote-api
Docker image, and I keep running into some issues. Would you be able to give me some guidance?I tried changing
connect("cabal -v0 v2-run exe:saw-remote-api")
toconnect(argo.connection.HttpProcess(url=sys.argv[1]))
in the salsa20.py script.The errors I get include:
and
I get similar errors changing the connection to a
RemoteSocketProcess
.Also, even though it doesn't successfully connect, I get
✅ All verified!
at the end.Thanks for the help!
The text was updated successfully, but these errors were encountered: