Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
9ca84e6b
Unverified
Commit
9ca84e6b
authored
May 12, 2023
by
Justin Traglia
Committed by
GitHub
May 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/kzg4844: upgrade c-kzg-4844 to v0.2.0 (#27257)
Upgrade c-kzg-4844 to v0.2.0
parent
19824372
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
kzg4844.go
crypto/kzg4844/kzg4844.go
+1
-1
kzg4844_ckzg_cgo.go
crypto/kzg4844/kzg4844_ckzg_cgo.go
+2
-2
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-0
No files found.
crypto/kzg4844/kzg4844.go
View file @
9ca84e6b
...
@@ -55,7 +55,7 @@ func UseCKZG(use bool) error {
...
@@ -55,7 +55,7 @@ func UseCKZG(use bool) error {
// Initializing the library can take 2-4 seconds - and can potentially crash
// Initializing the library can take 2-4 seconds - and can potentially crash
// on CKZG and non-ADX CPUs - so might as well so it now and don't wait until
// on CKZG and non-ADX CPUs - so might as well so it now and don't wait until
// a cr
py
to operation is actually needed live.
// a cr
yp
to operation is actually needed live.
if
use
{
if
use
{
ckzgIniter
.
Do
(
ckzgInit
)
ckzgIniter
.
Do
(
ckzgInit
)
}
else
{
}
else
{
...
...
crypto/kzg4844/kzg4844_ckzg_cgo.go
View file @
9ca84e6b
...
@@ -47,8 +47,8 @@ func ckzgInit() {
...
@@ -47,8 +47,8 @@ func ckzgInit() {
if
err
=
gokzg4844
.
CheckTrustedSetupIsWellFormed
(
params
);
err
!=
nil
{
if
err
=
gokzg4844
.
CheckTrustedSetupIsWellFormed
(
params
);
err
!=
nil
{
panic
(
err
)
panic
(
err
)
}
}
g1s
:=
make
([]
byte
,
len
(
params
.
SetupG1
)
*
(
len
(
params
.
SetupG1
[
0
])
-
2
)
/
2
)
g1s
:=
make
([]
byte
,
len
(
params
.
SetupG1
Lagrange
)
*
(
len
(
params
.
SetupG1Lagrange
[
0
])
-
2
)
/
2
)
for
i
,
g1
:=
range
params
.
SetupG1
{
for
i
,
g1
:=
range
params
.
SetupG1
Lagrange
{
copy
(
g1s
[
i
*
(
len
(
g1
)
-
2
)
/
2
:
],
hexutil
.
MustDecode
(
g1
))
copy
(
g1s
[
i
*
(
len
(
g1
)
-
2
)
/
2
:
],
hexutil
.
MustDecode
(
g1
))
}
}
g2s
:=
make
([]
byte
,
len
(
params
.
SetupG2
)
*
(
len
(
params
.
SetupG2
[
0
])
-
2
)
/
2
)
g2s
:=
make
([]
byte
,
len
(
params
.
SetupG2
)
*
(
len
(
params
.
SetupG2
[
0
])
-
2
)
/
2
)
...
...
go.mod
View file @
9ca84e6b
...
@@ -20,7 +20,7 @@ require (
...
@@ -20,7 +20,7 @@ require (
github.com/docker/docker v1.6.2
github.com/docker/docker v1.6.2
github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7
github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7
github.com/edsrzf/mmap-go v1.0.0
github.com/edsrzf/mmap-go v1.0.0
github.com/ethereum/c-kzg-4844 v0.
1
.0
github.com/ethereum/c-kzg-4844 v0.
2
.0
github.com/fatih/color v1.7.0
github.com/fatih/color v1.7.0
github.com/fjl/gencodec v0.0.0-20220412091415-8bb9e558978c
github.com/fjl/gencodec v0.0.0-20220412091415-8bb9e558978c
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5
...
...
go.sum
View file @
9ca84e6b
...
@@ -130,6 +130,8 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7
...
@@ -130,6 +130,8 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7
github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
github.com/ethereum/c-kzg-4844 v0.1.0 h1:BR9kUo6zAaFphuoNj39NquE3Sl0sD/oT0+idKZ4mkiI=
github.com/ethereum/c-kzg-4844 v0.1.0 h1:BR9kUo6zAaFphuoNj39NquE3Sl0sD/oT0+idKZ4mkiI=
github.com/ethereum/c-kzg-4844 v0.1.0/go.mod h1:WI2Nd82DMZAAZI1wV2neKGost9EKjvbpQR9OqE5Qqa8=
github.com/ethereum/c-kzg-4844 v0.1.0/go.mod h1:WI2Nd82DMZAAZI1wV2neKGost9EKjvbpQR9OqE5Qqa8=
github.com/ethereum/c-kzg-4844 v0.2.0 h1:+cUvymlnoDDQgMInp25Bo3OmLajmmY8mLJ/tLjqd77Q=
github.com/ethereum/c-kzg-4844 v0.2.0/go.mod h1:WI2Nd82DMZAAZI1wV2neKGost9EKjvbpQR9OqE5Qqa8=
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment