GithubHelp home page GithubHelp logo

dedis / cothority_template Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 15.0 10.16 MB

Implement new cothority protocols, services and (client) applications.

License: GNU Affero General Public License v3.0

Go 65.19% Shell 23.09% Makefile 7.60% Awk 3.42% Dockerfile 0.70%

cothority_template's People

Contributors

ineiti avatar jeffallen avatar kc1212 avatar nikkolasg avatar nkcr avatar tharvik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cothority_template's Issues

Documentation

Improve the app a bit so that the documentation can profit from it.

improve simulation-examples

The simulation-examples have some shortcomings:

  • names Simulation and simulation are too close
  • service-simulation doesn't implement Node
  • Node should show how to retrieve the actual index that is about to be initialized
  • simulation doesn't have a test

Closes #5
Closes #6

whatsmyip.org doesn't port-scan anymore

the previous php-call possible with whatsmyip.org does not work anymore. I propose we replace it with a simple service on dedis.ch that listens on a port. If a host sends a number to that port, the service will try to connect back to the host at the sent port-#. This avoids abuse of the system.

Unified tests & simulation

Currently, to run the simulation as a test you write

simul.Start("mySimul.toml")

while running it as a real simulation you NEED to do (otherwise only run localhost):

simul.Start()

The real simulation should accept toml file as well, or at least display an error message specifying that something's wrong. For example, no flags were working at all when using simul.Start("tomlFile") as a real simulation.

Adding templates

With the move of the libraries to dedis/onet, change cothority_template to use onet instead of cothority.

tests fail with cothority 3.3.1

I updated cothority to v3.3.1 today, and the following test failed:

--- FAIL: TestKeyValue_Invoke (2.41s)
    keyvalue_test.go:248: 
        	Error Trace:	keyvalue_test.go:248
        	            				keyvalue_test.go:101
        	Error:      	Expected nil, but got: tcp://127.0.0.1:57879 Contract keyValue got - instruction:
        	            	-- hash: 8ff3cc677f90e9d330a0433c0392c25d30feb580c150d7a0a88ddbced31862ef
        	            	-- instID: 25ebbbe71e9efceb2b078bbe2d6ec673482de74fc9310a20bcbb4b3f5e55f36f
        	            	-- action: invoke:keyValue.update
        	            	-- identities: [ed25519:d43007437e8330e6686374ea12ae25938faec1db2c175d3676e3de68b049a61c]
        	            	-- counters: [2]
        	            	-- signatures: 1
        	            	-error in getting constructor: keyValue and returned error: instruction verification failed: expression evaluated to false
        	Test:       	TestKeyValue_Invoke

service-tests

Problem: Service-tests are incoherent:

  • no test for api.go
  • test in service_test.go is in fact a test for api.go

TODO:

  • move test from service_test.go into `api_test.go
  • add test in service_test.go

Unable to build the project

When attempting to build the project or run any of the setup scripts.
Example:
Running the command ./run_conode.sh local 3 the program responds with the error
omniledger/keyvalue.go not enough arguments in call to service.NewStateChange().....
I am greeted with the same response when running the command go get ./...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.