-
Notifications
You must be signed in to change notification settings - Fork 169
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
Merging the drand fork #509
Merged
Merged
Changes from 101 commits
Commits
Show all changes
180 commits
Select commit
Hold shift + click to select a range
34a525d
signed and go.mod
nikkolasg 7fe8641
full replacement as per indication https://github.com/golang/go/issue…
nikkolasg c01e8ef
external scheme test
nikkolasg 84ec45b
tbls and bdn adapted with scheme
nikkolasg 53f989c
extracted threshold scheme
nikkolasg 558f79c
extended test for threshold
nikkolasg 240720a
go.sum changed
nikkolasg 594491c
removing bn256 from pairing/
nikkolasg 0770c5d
moved bn256 bls to bn256 package
nikkolasg 8de27ed
removing pairing from suites
nikkolasg 22dd74e
dkg returns an error when reader fails
nikkolasg 9e5bf6a
updated building code
nikkolasg b2458fe
fully commit
nikkolasg d227ada
building
nikkolasg 52819db
correct badge
nikkolasg ed3c998
new dkg shape
nikkolasg be362b2
intermediate commit
nikkolasg d5ec052
added index of signature
nikkolasg 30e90cc
Merge pull request #1 from drand/index_tbls
nikkolasg 5c9abe5
returning err only if not enough valid partials
nikkolasg 965fd62
Merge pull request #2 from drand/tbls
nikkolasg eaa304a
intermediate commit
nikkolasg 19de0c1
using correct circleci config
nikkolasg 0365a65
simple dkg and threshold tests passing
nikkolasg dae2766
test resharing done
nikkolasg 38c5f3d
full protocol test passing
nikkolasg b548f49
removed pedersen
nikkolasg fba05b4
removed dss since unused for now
nikkolasg e8fc438
fast sync tested
nikkolasg d0711a1
additional test
nikkolasg c913bcb
Safe DKG API with abstract network protocol implementation
nikkolasg 80b935f
no fmt printf
nikkolasg 8f54a91
Merge pull request #4 from drand/ndkg
nikkolasg 0c0323b
dkg config embedded as value struct
nikkolasg a5daef1
automatically start the dkg protocol
nikkolasg d48c05c
Merge pull request #5 from drand/ndkg
nikkolasg 391ebdd
more test for IndexOf
nikkolasg 832623d
Merge pull request #6 from drand/ndkg
nikkolasg 34be7f7
Merge branch 'master' of github.com:drand/kyber
nikkolasg 773f10c
test using idx
nikkolasg 3e96355
fix some indexes bugs
nikkolasg d654e4d
Merge pull request #7 from drand/fix/ndkg
nikkolasg f7d4207
without logging
nikkolasg daa30f0
Merge pull request #8 from drand/fix/ndkg
nikkolasg 48ca8ce
new test invalid previous public poly
nikkolasg b70608a
Merge pull request #9 from drand/test/tbls
nikkolasg d15bfa0
higher threshold / n for resharing
nikkolasg 3136f47
Merge pull request #10 from drand/test/dkg
nikkolasg b928b0f
sstronger conditions for compute results
nikkolasg cdbaa4c
Fix potential panic in dkg with stronger conditions on computing results
nikkolasg 2bfd1af
fix eviction of share holders (#14)
nikkolasg 7a2dbc4
added nonce requirement (#13)
nikkolasg abb4a98
fix set of messages (#15)
nikkolasg d2b3307
Mandatory authentication and simplified API (#16)
nikkolasg d63cace
add constraint on number of complaints (#17)
nikkolasg e24f401
Feat/broadcast (#18)
nikkolasg 7162163
fast pairing verification for bls (#19)
nikkolasg 8efc5d4
Fix eviction of absent participant (#20)
nikkolasg 0893a25
update to latest bls12-381 (#21)
nikkolasg 0c3784c
DKG Safer transition of phases (#22)
nikkolasg b61eec4
switch to stable slice because it's not buggy in sorting deals & resp…
nikkolasg 882a744
Fix storing by indices instead of sequentially (#25)
nikkolasg c5ce736
Basic Logging capability for DKG (#24)
nikkolasg be0590a
better logging (#26)
nikkolasg a60ddc0
Fixing logs (#27)
AnomalRoil 0482f4b
Identity-based encryption features to support timelock encryption (#28)
CluEleSsUK a780ab2
Github Actions integration to replace circle ci (#30)
CluEleSsUK d058958
Adding capability for hashing scalars (#33)
nikkolasg bf27c7a
Consume IBE hash function from the suite (#34)
CluEleSsUK 300068b
Fix IBE hash endianness (#35)
AnomalRoil 963d1f5
fixing test for race condition in status (#36)
nikkolasg d36ac51
IBE unit test for tlock typescript compat (#37)
CluEleSsUK 0a25681
Fix/eviction (#39)
nikkolasg 9b6e107
Updating deps (#40)
AnomalRoil f695825
Added additional error and info logging to DKG (#41)
CluEleSsUK 08005f2
Using patched kyber-bls12381 for G2 (#42)
AnomalRoil f864ea9
fixed bug where closing a channel mid-DKG would cause an infinite loo…
CluEleSsUK 57e99ee
use correct threshold in dkg (#45)
nikkolasg 75d37a5
Updating dependencies (#47)
AnomalRoil 5706fa5
Implementing IBE on G2 (#48)
AnomalRoil 080efbe
Fix MinimumT everywhere (#51)
AnomalRoil ef24d7e
fixed nil check on nodes in DKG (#54)
CluEleSsUK 96c6a27
Bump golang.org/x/crypto from 0.7.0 to 0.17.0 (#52)
dependabot[bot] 4417fb6
bounds check comparing polynomials (#56)
CluEleSsUK ab02d54
pairing: Adds support for BLS12381 using CIRCL library (#49)
armfazh a5d64f6
Bump github.com/cloudflare/circl from 1.3.2 to 1.3.7 (#58)
dependabot[bot] 266eb7b
Add Support for signatures on the G2 curve for BDN (#53)
matejpavlovic 6fadd9d
Add BN254 (#55)
kevincharm 54d4f93
updating dependencies
AnomalRoil d2dad33
Changes to imports of all files.
Robingoumaz 91cdf50
Commented the ibe_test.go file
Robingoumaz d2f8c52
Commented the bls_test.go file
Robingoumaz b38ac75
go mod tidy
Robingoumaz 4b070ac
Changes to the makefile and readme because of the conflicts.
Robingoumaz eda6183
signed and go.mod
nikkolasg 8ed4b3f
full replacement as per indication https://github.com/golang/go/issue…
nikkolasg c7c0ebf
external scheme test
nikkolasg aafd4f6
tbls and bdn adapted with scheme
nikkolasg 01516e3
extracted threshold scheme
nikkolasg 4928d57
extended test for threshold
nikkolasg 1e35fdc
go.sum changed
nikkolasg ae444c5
removing bn256 from pairing/
nikkolasg 398d86c
moved bn256 bls to bn256 package
nikkolasg 92ad1ce
removing pairing from suites
nikkolasg b4cece5
dkg returns an error when reader fails
nikkolasg 41140d4
updated building code
nikkolasg ce1283f
fully commit
nikkolasg e65b050
building
nikkolasg 3690819
correct badge
nikkolasg 6ca9a12
added index of signature
nikkolasg 3bbe85f
using correct circleci config
nikkolasg a65093d
returning err only if not enough valid partials
nikkolasg 5a4b510
new dkg shape
nikkolasg e03f899
intermediate commit
nikkolasg aea7200
intermediate commit
nikkolasg fcd8795
simple dkg and threshold tests passing
nikkolasg 1e537e1
test resharing done
nikkolasg fba6c92
full protocol test passing
nikkolasg bd25e91
removed pedersen
nikkolasg b9e4f33
removed dss since unused for now
nikkolasg 133b380
fast sync tested
nikkolasg 89688e2
additional test
nikkolasg 8991a12
no fmt printf
nikkolasg 37354ca
dkg config embedded as value struct
nikkolasg 1be7e3b
automatically start the dkg protocol
nikkolasg ee5b5a1
more test for IndexOf
nikkolasg be809cb
test using idx
nikkolasg 5e32fc1
fix some indexes bugs
nikkolasg 15f4080
without logging
nikkolasg 83f8bb9
new test invalid previous public poly
nikkolasg dae5d36
higher threshold / n for resharing
nikkolasg 0ae33b0
sstronger conditions for compute results
nikkolasg 08dc739
fix eviction of share holders (#14)
nikkolasg a668c2e
added nonce requirement (#13)
nikkolasg bc8ff54
fix set of messages (#15)
nikkolasg 21636be
Mandatory authentication and simplified API (#16)
nikkolasg dfc24ac
add constraint on number of complaints (#17)
nikkolasg 78d5e19
Feat/broadcast (#18)
nikkolasg 69b3549
fast pairing verification for bls (#19)
nikkolasg 9b0a0b8
Fix eviction of absent participant (#20)
nikkolasg 0d6782c
update to latest bls12-381 (#21)
nikkolasg 58681bc
DKG Safer transition of phases (#22)
nikkolasg 35bb6b7
switch to stable slice because it's not buggy in sorting deals & resp…
nikkolasg 1041b9d
Fix storing by indices instead of sequentially (#25)
nikkolasg d61ef79
Basic Logging capability for DKG (#24)
nikkolasg ee80d14
better logging (#26)
nikkolasg 3126ef2
Fixing logs (#27)
AnomalRoil a4d8acb
Identity-based encryption features to support timelock encryption (#28)
CluEleSsUK 61eb170
Github Actions integration to replace circle ci (#30)
CluEleSsUK 745b8b2
Adding capability for hashing scalars (#33)
nikkolasg 7b704b5
Consume IBE hash function from the suite (#34)
CluEleSsUK 2c2d662
Fix IBE hash endianness (#35)
AnomalRoil bf00124
fixing test for race condition in status (#36)
nikkolasg d2946fe
IBE unit test for tlock typescript compat (#37)
CluEleSsUK 9249e3a
Fix/eviction (#39)
nikkolasg 625b7f6
Updating deps (#40)
AnomalRoil c47ef52
Added additional error and info logging to DKG (#41)
CluEleSsUK 2ff80cc
Using patched kyber-bls12381 for G2 (#42)
AnomalRoil 30c05a7
fixed bug where closing a channel mid-DKG would cause an infinite loo…
CluEleSsUK 5e64f81
use correct threshold in dkg (#45)
nikkolasg c458de1
Updating dependencies (#47)
AnomalRoil 841acc7
Implementing IBE on G2 (#48)
AnomalRoil 0ba2d88
Fix MinimumT everywhere (#51)
AnomalRoil 359bf0f
fixed nil check on nodes in DKG (#54)
CluEleSsUK ef28b1c
Bump golang.org/x/crypto from 0.7.0 to 0.17.0 (#52)
dependabot[bot] ac6eb87
bounds check comparing polynomials (#56)
CluEleSsUK 3b2e0fc
pairing: Adds support for BLS12381 using CIRCL library (#49)
armfazh 293edd2
Bump github.com/cloudflare/circl from 1.3.2 to 1.3.7 (#58)
dependabot[bot] dcbe2cf
Add Support for signatures on the G2 curve for BDN (#53)
matejpavlovic 447887b
Add BN254 (#55)
kevincharm 03aea73
updating dependencies
AnomalRoil 3c05b97
Changes to imports of all files.
Robingoumaz 9a99479
Commented the ibe_test.go file
Robingoumaz 4612b62
Commented the bls_test.go file
Robingoumaz cfb9b8d
go mod tidy
Robingoumaz 3110fcf
Changes to the makefile and readme because of the conflicts.
Robingoumaz 9629a04
Merge branch 'master' of github.com:Robingoumaz/kyber-drand
Robingoumaz 8f039bf
Format + error fixing after the merge of the master into the fork
Robingoumaz 1f8da36
going back to dedis makefile + fixing a function that got chopped dur…
Robingoumaz 16a0920
Uncommented tests and fixed the errors that arised. Excluded the "_de…
Robingoumaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ designed to be independent of specific cryptographic algorithms, | |
to facilitate upgrading applications to new cryptographic algorithms | ||
or switching to alternative algorithms for experimentation purposes. | ||
|
||
Abstract Groups | ||
# Abstract Groups | ||
|
||
This toolkits public-key crypto API includes a kyber.Group interface | ||
supporting a broad class of group-based public-key primitives | ||
|
@@ -23,9 +23,9 @@ DSA-style integer groups. | |
|
||
As a trivial example, generating a public/private keypair is as simple as: | ||
|
||
suite := suites.MustFind("Ed25519") // Use the edwards25519-curve | ||
a := suite.Scalar().Pick(suite.RandomStream()) // Alice's private key | ||
A := suite.Point().Mul(a, nil) // Alice's public key | ||
suite := suites.MustFind("Ed25519") // Use the edwards25519-curve | ||
a := suite.Scalar().Pick(suite.RandomStream()) // Alice's private key | ||
A := suite.Point().Mul(a, nil) // Alice's public key | ||
|
||
The first statement picks a private key (Scalar) from a the suites's source of | ||
cryptographic random or pseudo-random bits, while the second performs elliptic | ||
|
@@ -42,7 +42,7 @@ rather than the multiplicative-group terminology of traditional | |
integer groups - but the two are semantically equivalent and the | ||
interface itself works for both elliptic curve and integer groups. | ||
|
||
Higher-level Building Blocks | ||
# Higher-level Building Blocks | ||
|
||
Various sub-packages provide several specific | ||
implementations of these cryptographic interfaces. | ||
|
@@ -91,7 +91,7 @@ that keep the sources of individual votes or bids private | |
without anyone having to trust more than one of the shuffler(s) to shuffle | ||
votes/bids honestly. | ||
|
||
Target Use-cases | ||
# Target Use-cases | ||
|
||
As should be obvious, this library is intended to be used by | ||
developers who are at least moderately knowledgeable about | ||
|
@@ -109,7 +109,7 @@ to is the Charm rapid prototyping library for Python | |
This library incorporates and/or builds on existing code from a variety of | ||
sources, as documented in the relevant sub-packages. | ||
|
||
Reporting Security Problems | ||
# Reporting Security Problems | ||
|
||
This library is offered as-is, and without a guarantee. It will need an | ||
independent security review before it should be considered ready for use in | ||
|
@@ -118,6 +118,5 @@ is YOUR RESPONSIBILITY to arrange for that audit. | |
|
||
If you notice a possible security problem, please report it | ||
to [email protected]. | ||
|
||
*/ | ||
package kyber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why comment out the entire IBE tests code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I uncommented them and used the circl bls12381 instead but there is a difference between the scalar of circl bls and the one of the other pairing curve which makes it not pass the tests. I am trying to change the circl implementation so that it uses mod.Int
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conversion is not needed if rejection sampling is updated as in:
https://github.com/Robingoumaz/kyber-drand/pull/1