Re: Kyber installation issues

10 views
Skip to first unread message

Allen Jeffrey Richard

unread,
Nov 24, 2020, 4:50:17 AM11/24/20
to coth...@googlegroups.com, Borsò Pierluca
First, sorry for the delay. You contacted me on my personal mailing address, instead of contacting the team at work. Here’s our contact info, from the related Cothority repo:
The Google group where the whole team listens is:

I suppose Kyber should mention that mailing list more clearly.

I’m having some basic issues with the latest version of Kyber:

1) I followed the installation instructions at https://github.com/dedis/kyber:
go test -v ./

Although I expected all dependencies to be installed automatically, I'd to manually install two other dependencies (that're listed in the go.mod file) for it to work:
go get go.dedis.ch/fixbuf
go get golang.org/x/crypto/blake2b

Are the installation instructions up to date, or am I doing something incorrectly?

Hmm, those installation instructions are not taking into consideration the Go modules, and the fact that Kyber has major version 3, thus the import path should be go.dedis.ch/kyber/v3.

Here’s a minimal example of using Kyber:

1. Make a new directory called “ex". Change directory to “ex" and put this in main.go:

package main

import (
"fmt"
)

func main() {
s := suites.MustFind("Ed25519")
x := s.Scalar().Zero()
fmt.Println(x)
}

2. Type “go mod init example.com/ex”. The resulting go.mod file will have no dependencies listed yet.

3. Type “go build”. The go tool will fill in the new dependencies that it find for you, i.e. "require go.dedis.ch/kyber/v3 v3.0.13”.

4. “./ex” will print “0000000000000000000000000000000000000000000000000000000000000000”.

  -jeff

Reply all
Reply to author
Forward
0 new messages