diff --git a/README.md b/README.md index e2441b0b77..0aab443070 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,3 @@ We welcome all contributions! There are many ways to contribute to the project, - [EigenLayer/EigenDA forum](https://forum.eigenlayer.xyz/c/eigenda/9) - [Email](mailto:eigenda-support@eigenlabs.org) - [Follow us on Twitter](https://twitter.com/eigenlayer) - -## Acknowledgement -Cryptographic library inside pkg/kzg are copied from https://github.com/protolambda/go-kzg. All functions will be replaced by our own implementation in the future. diff --git a/pkg/kzg/bn254/bignum_gnark.go b/pkg/kzg/bn254/bignum_gnark.go index 5a39705956..c5d3594935 100644 --- a/pkg/kzg/bn254/bignum_gnark.go +++ b/pkg/kzg/bn254/bignum_gnark.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/bn254/bignum_gnark_test.go b/pkg/kzg/bn254/bignum_gnark_test.go index 8a2b0e6365..100066b4e9 100644 --- a/pkg/kzg/bn254/bignum_gnark_test.go +++ b/pkg/kzg/bn254/bignum_gnark_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/bn254/bn254_all.go b/pkg/kzg/bn254/bn254_all.go index b1ba56dbc4..be126790e6 100644 --- a/pkg/kzg/bn254/bn254_all.go +++ b/pkg/kzg/bn254/bn254_all.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/bn254/bn254_all_test.go b/pkg/kzg/bn254/bn254_all_test.go index 60fccbd0de..ecf81c865a 100644 --- a/pkg/kzg/bn254/bn254_all_test.go +++ b/pkg/kzg/bn254/bn254_all_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/bn254/globals_test.go b/pkg/kzg/bn254/globals_test.go index d7a16b991d..0e656b4c30 100644 --- a/pkg/kzg/bn254/globals_test.go +++ b/pkg/kzg/bn254/globals_test.go @@ -1,3 +1,4 @@ + package bn254 import ( diff --git a/pkg/kzg/das_extension.go b/pkg/kzg/das_extension.go index 7e4f4e2805..7c8e0cc68d 100644 --- a/pkg/kzg/das_extension.go +++ b/pkg/kzg/das_extension.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/das_extension_test.go b/pkg/kzg/das_extension_test.go index cf003676d9..5c697a8e7c 100644 --- a/pkg/kzg/das_extension_test.go +++ b/pkg/kzg/das_extension_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/errors.go b/pkg/kzg/errors.go index 483e1535e3..4db562faa6 100644 --- a/pkg/kzg/errors.go +++ b/pkg/kzg/errors.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fft.go b/pkg/kzg/fft.go index 8bebdb644e..9c4b9f7b57 100644 --- a/pkg/kzg/fft.go +++ b/pkg/kzg/fft.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fft_fr.go b/pkg/kzg/fft_fr.go index fc0f29dfd0..10d6aaebf9 100644 --- a/pkg/kzg/fft_fr.go +++ b/pkg/kzg/fft_fr.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fft_fr_test.go b/pkg/kzg/fft_fr_test.go index a706ea359e..fe70ce5dbe 100644 --- a/pkg/kzg/fft_fr_test.go +++ b/pkg/kzg/fft_fr_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fft_g1.go b/pkg/kzg/fft_g1.go index 5e691efd4f..2f067e7e14 100644 --- a/pkg/kzg/fft_g1.go +++ b/pkg/kzg/fft_g1.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fk20_multi.go b/pkg/kzg/fk20_multi.go index e62999327e..f6a1cbf798 100644 --- a/pkg/kzg/fk20_multi.go +++ b/pkg/kzg/fk20_multi.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fk20_multi_test.go b/pkg/kzg/fk20_multi_test.go index c9337fca30..1241abcf0d 100644 --- a/pkg/kzg/fk20_multi_test.go +++ b/pkg/kzg/fk20_multi_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fk20_single.go b/pkg/kzg/fk20_single.go index 8937b45ac0..8dc1b99f2e 100644 --- a/pkg/kzg/fk20_single.go +++ b/pkg/kzg/fk20_single.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/fk20_single_test.go b/pkg/kzg/fk20_single_test.go index 1d03ac1f78..bb51743a30 100644 --- a/pkg/kzg/fk20_single_test.go +++ b/pkg/kzg/fk20_single_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/integration_test.go b/pkg/kzg/integration_test.go index be57a08a5c..23ff80d44b 100644 --- a/pkg/kzg/integration_test.go +++ b/pkg/kzg/integration_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/kzg.go b/pkg/kzg/kzg.go index 2946482f36..f12f8cf83d 100644 --- a/pkg/kzg/kzg.go +++ b/pkg/kzg/kzg.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/kzg_multi_proofs.go b/pkg/kzg/kzg_multi_proofs.go index 3b6d28b545..b82c8386e1 100644 --- a/pkg/kzg/kzg_multi_proofs.go +++ b/pkg/kzg/kzg_multi_proofs.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/kzg_multi_proofs_test.go b/pkg/kzg/kzg_multi_proofs_test.go index 96bd35b8b6..4634337dd6 100644 --- a/pkg/kzg/kzg_multi_proofs_test.go +++ b/pkg/kzg/kzg_multi_proofs_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/kzg_single_proofs.go b/pkg/kzg/kzg_single_proofs.go index 87d2269301..dbe548ad9f 100644 --- a/pkg/kzg/kzg_single_proofs.go +++ b/pkg/kzg/kzg_single_proofs.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/kzg_single_proofs_test.go b/pkg/kzg/kzg_single_proofs_test.go index b4d0f51708..c5ce07a2ba 100644 --- a/pkg/kzg/kzg_single_proofs_test.go +++ b/pkg/kzg/kzg_single_proofs_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/legacy_recover_test.go b/pkg/kzg/legacy_recover_test.go index bb5811c604..fbc04c9e65 100644 --- a/pkg/kzg/legacy_recover_test.go +++ b/pkg/kzg/legacy_recover_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/legacy_recovery.go b/pkg/kzg/legacy_recovery.go index c5c02c1d84..0c295d791a 100644 --- a/pkg/kzg/legacy_recovery.go +++ b/pkg/kzg/legacy_recovery.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/poly.go b/pkg/kzg/poly.go index 392e408d28..f52f155403 100644 --- a/pkg/kzg/poly.go +++ b/pkg/kzg/poly.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/recover_from_samples.go b/pkg/kzg/recover_from_samples.go index 4be4e47f0b..1758ccce99 100644 --- a/pkg/kzg/recover_from_samples.go +++ b/pkg/kzg/recover_from_samples.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/recover_from_samples_test.go b/pkg/kzg/recover_from_samples_test.go index 12968402f9..e53d03539b 100644 --- a/pkg/kzg/recover_from_samples_test.go +++ b/pkg/kzg/recover_from_samples_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/reverse_bit_order.go b/pkg/kzg/reverse_bit_order.go index eacfaa6167..b9d74fcacc 100644 --- a/pkg/kzg/reverse_bit_order.go +++ b/pkg/kzg/reverse_bit_order.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/reverse_bit_order_test.go b/pkg/kzg/reverse_bit_order_test.go index 8dd0176bb0..541e68bf46 100644 --- a/pkg/kzg/reverse_bit_order_test.go +++ b/pkg/kzg/reverse_bit_order_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/setup.go b/pkg/kzg/setup.go index 1fe87a8361..96ce8a031b 100644 --- a/pkg/kzg/setup.go +++ b/pkg/kzg/setup.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/srs.go b/pkg/kzg/srs.go index fbe94bfa1a..7a3bb5882a 100644 --- a/pkg/kzg/srs.go +++ b/pkg/kzg/srs.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/zero_poly.go b/pkg/kzg/zero_poly.go index 990d63fee3..0a8f4e8c66 100644 --- a/pkg/kzg/zero_poly.go +++ b/pkg/kzg/zero_poly.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda diff --git a/pkg/kzg/zero_poly_test.go b/pkg/kzg/zero_poly_test.go index c8250585bd..29ca14f6b6 100644 --- a/pkg/kzg/zero_poly_test.go +++ b/pkg/kzg/zero_poly_test.go @@ -1,3 +1,5 @@ +// This code is sourced from the go-kzg Repository by protolambda. +// Original code: https://github.com/protolambda/go-kzg // MIT License // // Copyright (c) 2020 @protolambda