From e30c0af86127fd605281bd5b3de3ce2fb8ac95aa Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Thu, 11 Jun 2020 04:25:32 +0800 Subject: [PATCH] build, internal/ethapi, crypto/bls12381: fix typos (#21210) speicifc -> specific assigened -> assigned frobenious -> frobenius --- crypto/bls12381/fp2.go | 4 ++-- crypto/bls12381/fp6.go | 12 ++++++------ internal/build/azure.go | 2 +- internal/ethapi/api.go | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crypto/bls12381/fp2.go b/crypto/bls12381/fp2.go index d7820e061d..0f1c5a23ac 100644 --- a/crypto/bls12381/fp2.go +++ b/crypto/bls12381/fp2.go @@ -207,7 +207,7 @@ func (e *fp2) exp(c, a *fe2, s *big.Int) { c.set(z) } -func (e *fp2) frobeniousMap(c, a *fe2, power uint) { +func (e *fp2) frobeniusMap(c, a *fe2, power uint) { c[0].set(&a[0]) if power%2 == 1 { neg(&c[1], &a[1]) @@ -216,7 +216,7 @@ func (e *fp2) frobeniousMap(c, a *fe2, power uint) { c[1].set(&a[1]) } -func (e *fp2) frobeniousMapAssign(a *fe2, power uint) { +func (e *fp2) frobeniusMapAssign(a *fe2, power uint) { if power%2 == 1 { neg(&a[1], &a[1]) return diff --git a/crypto/bls12381/fp6.go b/crypto/bls12381/fp6.go index 0128adcf08..304173baa3 100644 --- a/crypto/bls12381/fp6.go +++ b/crypto/bls12381/fp6.go @@ -314,9 +314,9 @@ func (e *fp6) inverse(c, a *fe6) { func (e *fp6) frobeniusMap(c, a *fe6, power uint) { fp2 := e.fp2 - fp2.frobeniousMap(&c[0], &a[0], power) - fp2.frobeniousMap(&c[1], &a[1], power) - fp2.frobeniousMap(&c[2], &a[2], power) + fp2.frobeniusMap(&c[0], &a[0], power) + fp2.frobeniusMap(&c[1], &a[1], power) + fp2.frobeniusMap(&c[2], &a[2], power) switch power % 6 { case 0: return @@ -332,9 +332,9 @@ func (e *fp6) frobeniusMap(c, a *fe6, power uint) { func (e *fp6) frobeniusMapAssign(a *fe6, power uint) { fp2 := e.fp2 - fp2.frobeniousMapAssign(&a[0], power) - fp2.frobeniousMapAssign(&a[1], power) - fp2.frobeniousMapAssign(&a[2], power) + fp2.frobeniusMapAssign(&a[0], power) + fp2.frobeniusMapAssign(&a[1], power) + fp2.frobeniusMapAssign(&a[2], power) t := e.t switch power % 6 { case 0: diff --git a/internal/build/azure.go b/internal/build/azure.go index 7862842650..ce0241f9f1 100644 --- a/internal/build/azure.go +++ b/internal/build/azure.go @@ -26,7 +26,7 @@ import ( ) // AzureBlobstoreConfig is an authentication and configuration struct containing -// the data needed by the Azure SDK to interact with a speicifc container in the +// the data needed by the Azure SDK to interact with a specific container in the // blobstore. type AzureBlobstoreConfig struct { Account string // Account name to authorize API requests with diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 8e2fe4b3de..7d17c9cd21 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -990,7 +990,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNrOrHash // If the error is not nil(consensus error), it means the provided message // call or transaction will never be accepted no matter how much gas it is - // assigened. Return the error directly, don't struggle any more. + // assigned. Return the error directly, don't struggle any more. if err != nil { return 0, err }