[node.sh] moved blsloader folder to internal/blsgen

pull/3219/head
Jacky Wang 4 years ago
parent 761cceb53d
commit 87e0e099c5
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 2
      internal/blsgen/console.go
  2. 2
      internal/blsgen/console_test.go
  3. 2
      internal/blsgen/helper.go
  4. 2
      internal/blsgen/helper_test.go
  5. 5
      internal/blsgen/kms.go
  6. 2
      internal/blsgen/kms_test.go
  7. 2
      internal/blsgen/loader.go
  8. 2
      internal/blsgen/loader_test.go
  9. 2
      internal/blsgen/params.go
  10. 2
      internal/blsgen/passphrase.go
  11. 2
      internal/blsgen/passphrase_test.go
  12. 5
      internal/blsgen/utils.go
  13. 2
      internal/blsgen/utils_test.go

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"bufio"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"errors"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"fmt"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"bytes"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"encoding/json"
@ -12,7 +12,6 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/kms"
bls_core "github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/internal/blsgen"
"github.com/pkg/errors"
)
@ -77,7 +76,7 @@ func (kd *kmsDecrypter) decryptFile(keyFile string) (*bls_core.SecretKey, error)
if err != nil {
return nil, err
}
return blsgen.LoadAwsCMKEncryptedBLSKey(keyFile, kms)
return LoadAwsCMKEncryptedBLSKey(keyFile, kms)
}
func (kd *kmsDecrypter) validateConfig() error {

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"encoding/json"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"errors"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"errors"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import "time"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"errors"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"bytes"

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"fmt"
@ -7,7 +7,6 @@ import (
"strings"
bls_core "github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/internal/blsgen"
)
func loadBasicKeyWithProvider(blsKeyFile string, pp passProvider) (*bls_core.SecretKey, error) {
@ -15,7 +14,7 @@ func loadBasicKeyWithProvider(blsKeyFile string, pp passProvider) (*bls_core.Sec
if err != nil {
return nil, err
}
secretKey, err := blsgen.LoadBLSKeyWithPassPhrase(blsKeyFile, pass)
secretKey, err := LoadBLSKeyWithPassPhrase(blsKeyFile, pass)
if err != nil {
return nil, err
}

@ -1,4 +1,4 @@
package blsloader
package blsgen
import (
"fmt"
Loading…
Cancel
Save