Code Monkey home page Code Monkey logo

drynx's People

Contributors

froelich avatar ineiti avatar joaoandresa avatar tharvik avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

drynx's Issues

client.GenerateSurveyQuery with empty (but not nil) PublishSignatureBytes panic

client.GenerateSurveyQuery(
    [...]
    []*[]drynx_lib.PublishSignatureBytes{},
    [...]

panic with

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/ldsec/drynx/services.(*API).GenerateSurveyQuery(0xc000098ec0, 0xc000098e80, 0xc000098e80, 0xc000a21170, 0xc000a211a0, 0xc00023ed10, 0xf, 0xc00023ed78, 0x8, 0x1, ...)
	/home/tharvik/c4dt/drynx/services/api.go:63 +0x401
main.surveyRun(0xc00024e2c0, 0x0, 0xc0001c7220)
	/home/tharvik/c4dt/drynx/cmd/client/survey.go:95 +0x776
github.com/urfave/cli.HandleAction(0xbb2740, 0xcebb70, 0xc00024e2c0, 0xc00024e2c0, 0x0)
	/home/tharvik/.go/pkg/mod/github.com/urfave/[email protected]/app.go:523 +0xbe
github.com/urfave/cli.Command.Run(0xcb943c, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/tharvik/.go/pkg/mod/github.com/urfave/[email protected]/command.go:174 +0x51c
github.com/urfave/cli.(*App).RunAsSubcommand(0xc00024a1c0, 0xc00024e000, 0x0, 0x0)
	/home/tharvik/.go/pkg/mod/github.com/urfave/[email protected]/app.go:404 +0x869
github.com/urfave/cli.Command.startApp(0xcbb7cd, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcc46d7, 0x12, 0x0, ...)
	/home/tharvik/.go/pkg/mod/github.com/urfave/[email protected]/command.go:329 +0x845
github.com/urfave/cli.Command.Run(0xcbb7cd, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcc46d7, 0x12, 0x0, ...)
	/home/tharvik/.go/pkg/mod/github.com/urfave/[email protected]/command.go:102 +0x9ca
github.com/urfave/cli.(*App).Run(0xc00024a000, 0xc0000b0150, 0x3, 0x3, 0x0, 0x0)
	/home/tharvik/.go/pkg/mod/github.com/urfave/[email protected]/app.go:276 +0x718
main.main()
	/home/tharvik/c4dt/drynx/cmd/client/main.go:59 +0x2ab

Easy Deployment

Discuss how to do the deployment and what the security-model is for the different nodes - how they onboard and who trusts whom.

Error while closing node: Can't shutdown empty ProtocolInstance

Spurious error found while running the tests on travis.

error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
error while processing msg type PTID(platform.simulInit:0c0b5b067d115c86ac2441341f51b506) from tcp://127.0.0.1:33563: sending: <nil>
Error while closing node: Can't shutdown empty ProtocolInstance:
    go.dedis.ch/onet/v3.(*TreeNodeInstance).closeDispatch
        /home/travis/gopath/pkg/mod/go.dedis.ch/onet/[email protected]/treenode.go:372
TransmitMsg failed: creating protocol:
    go.dedis.ch/onet/v3.(*Overlay).TransmitMsg
        /home/travis/gopath/pkg/mod/go.dedis.ch/onet/[email protected]/overlay.go:172
  - could not create new protocol:
    go.dedis.ch/onet/v3.(*serviceManager).newProtocol.func2
        /home/travis/gopath/pkg/mod/go.dedis.ch/onet/[email protected]/service.go:523
  - runtime error: invalid memory address or nil pointer dereference
Error starting the 'waiting' threads: sending: connection read: read tcp 127.0.0.1:54508->127.0.0.1:46554: i/o timeout
FAIL	github.com/ldsec/drynx/simul	303.075s
FAIL

Use ByzCoin for logging

Replace the skipchain with a byzcoin, so that the logging can be done on a more used basis.

survey without connnected client in `ServerToDP` panic

client := drynx_services.NewDrynxClient(roster.List[0], os.Args[0])
client.GenerateSurveyQuery(
    [...]
    map[string]*[]onet_network.ServerIdentity{ // map CN to DPs
        roster.List[1].String(): &[]onet_network.ServerIdentity{*roster.List[0]}},
    [...]

gives

E : websocket.go:333 (v3.wsHandler.ServeHTTP)@9082                                               - Got an error while executing drynx/SurveyQuery: panic with runtime error: index out of range [0] with length 0:
    go.dedis.ch/onet/v3.callInterfaceFunc.func1
        /home/tharvik/.go/pkg/mod/go.dedis.ch/onet/[email protected]/processor.go:413

survey with `QueryDPDataGen{Min: $x, Max: $x}` panic for ∀x

Running a survey with the same value of min and max for QueryDPDataGen panic a goroutine with

panic: invalid argument to Intn

goroutine 49 [running]:
math/rand.(*Rand).Intn(0xc00009a1b0, 0x0, 0x133cee0)
	/usr/lib/go/src/math/rand/rand.go:169 +0x9c
math/rand.Intn(...)
	/usr/lib/go/src/math/rand/rand.go:329
github.com/ldsec/unlynx/data.random(0x1, 0x1, 0x1)
	/home/tharvik/.go/pkg/mod/github.com/ldsec/[email protected]/data/handle_data.go:29 +0xf9
github.com/ldsec/unlynx/data.CreateInt64Slice(0x1, 0x1, 0x1, 0x0, 0x0, 0x0)
	/home/tharvik/.go/pkg/mod/github.com/ldsec/[email protected]/data/handle_data.go:168 +0x84
github.com/ldsec/drynx/protocols.createFakeDataForOperation.func1(0xc0000223e4, 0x1, 0x1, 0x1, 0xc0003f6760, 0x1, 0x1, 0x0)
	/home/tharvik/c4dt/drynx/protocols/data_collection_protocol.go:380 +0x80
created by github.com/ldsec/drynx/protocols.createFakeDataForOperation
	/home/tharvik/c4dt/drynx/protocols/data_collection_protocol.go:378 +0x12b

Missing tests

Some test files are empty. The corresponding operations are all checked in order test but they should still have their own test. Here is the list of empty tests:

  • crypto_test

  • key_switching_proof_test

  • service_data_provider_test

  • service_skipchain

Moreover, in service_test, the output is checked by printing the results and assertions should be added instead.

survey with `ServerToDP` mapping a CN to the same `ServerIdentity` as DP hang

client.GenerateSurveyQuery(
    [...]
    map[string]*[]onet_network.ServerIdentity{ // map CN to DPs
        roster.List[0].String(): &[]onet_network.ServerIdentity{*roster.List[0]}}
    [...]

make the system wait for two (because by default CN is added as DP, so two the same) messages from roster.List[0] but there is only one answer, thus hanging.

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.