immesys / wave

Wide Area Verified Exchange - version 3
MIT License
34 stars 15 forks source link

Basic Tutorial not working #24

Open jbkoh opened 5 years ago

jbkoh commented 5 years ago

Hi,

I am trying to learn WAVE for my projects. I just downloaded the release version 0.4.0, and ran ./waved to follow the instruction in README.md. However, it showed "Illegal instruction". I tried both with/without sudo. My OS is Ubuntu 18.04. I'd appreciate if you have any clue about this.

Thanks in advance.

gtfierro commented 5 years ago

I think you are better off building from source, or trying different builds. There are a number of things that have changed between 0.4.0 and the current commit. On my fork I've tried to automate some builds that you can try (v0.5-alpha, for amd-linux64), but I also have a Makefile that you can use to see the instructions for building. You'll need godep installed to handle the dependencies.

jbkoh commented 5 years ago

@gtfierro Thanks for the advice. I successfully compiled waved and wv from the source code based on your Makefile. Now the entire Tutorial is working.

There is a small fix for the usability. waved and wv use different ports by default. I had to manually change the port in wave.toml in the release version.

Also, in the default wave.toml, "https://standalone.storage.bwave.io/v1" is defined for storage. What is it for and is it okay to leave it as it is?

gtfierro commented 5 years ago

I guess those got changed at some point... they certainly used to be the same!

The storage is covered in detail in the USENIX Security paper. It is where WAVE stores attestations. The default value should work fine

jbkoh commented 5 years ago

Does it mean that all the attestations that I request are stored in https://standalone.storage.bwave.io/v1?

What should I do if I want to run a database by myself?

Also, currently storage.default seems to be activated and storage.vldm is commented out. What are the differences between them?

gtfierro commented 5 years ago

Yes, they are all stored there. You can dig into the storage/ folder if you want to run a storage server yourself, but its likely not worth the trouble.

The paper documents the differences between the default and VLDM storage. The default one is activated so that you don't have to worry about this.

jbkoh commented 5 years ago