build, internal/ethapi, crypto/bls12381: fix typos (#21210)

speicifc -> specific
assigened -> assigned
frobenious -> frobenius
This commit is contained in:
Yang Hau 2020-06-11 04:25:32 +08:00 committed by GitHub
parent 4a19c0e7b8
commit e30c0af861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -207,7 +207,7 @@ func (e *fp2) exp(c, a *fe2, s *big.Int) {
c.set(z) 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]) c[0].set(&a[0])
if power%2 == 1 { if power%2 == 1 {
neg(&c[1], &a[1]) neg(&c[1], &a[1])
@ -216,7 +216,7 @@ func (e *fp2) frobeniousMap(c, a *fe2, power uint) {
c[1].set(&a[1]) 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 { if power%2 == 1 {
neg(&a[1], &a[1]) neg(&a[1], &a[1])
return return

View File

@ -314,9 +314,9 @@ func (e *fp6) inverse(c, a *fe6) {
func (e *fp6) frobeniusMap(c, a *fe6, power uint) { func (e *fp6) frobeniusMap(c, a *fe6, power uint) {
fp2 := e.fp2 fp2 := e.fp2
fp2.frobeniousMap(&c[0], &a[0], power) fp2.frobeniusMap(&c[0], &a[0], power)
fp2.frobeniousMap(&c[1], &a[1], power) fp2.frobeniusMap(&c[1], &a[1], power)
fp2.frobeniousMap(&c[2], &a[2], power) fp2.frobeniusMap(&c[2], &a[2], power)
switch power % 6 { switch power % 6 {
case 0: case 0:
return return
@ -332,9 +332,9 @@ func (e *fp6) frobeniusMap(c, a *fe6, power uint) {
func (e *fp6) frobeniusMapAssign(a *fe6, power uint) { func (e *fp6) frobeniusMapAssign(a *fe6, power uint) {
fp2 := e.fp2 fp2 := e.fp2
fp2.frobeniousMapAssign(&a[0], power) fp2.frobeniusMapAssign(&a[0], power)
fp2.frobeniousMapAssign(&a[1], power) fp2.frobeniusMapAssign(&a[1], power)
fp2.frobeniousMapAssign(&a[2], power) fp2.frobeniusMapAssign(&a[2], power)
t := e.t t := e.t
switch power % 6 { switch power % 6 {
case 0: case 0:

View File

@ -26,7 +26,7 @@ import (
) )
// AzureBlobstoreConfig is an authentication and configuration struct containing // 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. // blobstore.
type AzureBlobstoreConfig struct { type AzureBlobstoreConfig struct {
Account string // Account name to authorize API requests with Account string // Account name to authorize API requests with

View File

@ -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 // 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 // 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 { if err != nil {
return 0, err return 0, err
} }