Commit f4f2b289 authored by suyanlong's avatar suyanlong

rename word

parent 3f99c74f
Pipeline #7973 failed with stages
...@@ -378,7 +378,7 @@ func loadClient(keyPath string, grpcAddrs []string, ctx *cli.Context) (rpcx.Clie ...@@ -378,7 +378,7 @@ func loadClient(keyPath string, grpcAddrs []string, ctx *cli.Context) (rpcx.Clie
return nil, fmt.Errorf("init config error: %s", err) return nil, fmt.Errorf("init config error: %s", err)
} }
privateKey, err := asym.RestorePrivateKey(keyPath, "bitxhub") privateKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -401,7 +401,7 @@ func loadClient(keyPath string, grpcAddrs []string, ctx *cli.Context) (rpcx.Clie ...@@ -401,7 +401,7 @@ func loadClient(keyPath string, grpcAddrs []string, ctx *cli.Context) (rpcx.Clie
} }
func getPubKey(keyPath string) (string, error) { func getPubKey(keyPath string) (string, error) {
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub") privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil { if err != nil {
return "", err return "", err
} }
...@@ -414,7 +414,7 @@ func getPubKey(keyPath string) (string, error) { ...@@ -414,7 +414,7 @@ func getPubKey(keyPath string) (string, error) {
} }
func getAddr(keyPath string) (string, error) { func getAddr(keyPath string) (string, error) {
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub") privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil { if err != nil {
return "", err return "", err
} }
......
...@@ -296,7 +296,7 @@ func getSidecarAppchain(ctx *cli.Context) error { ...@@ -296,7 +296,7 @@ func getSidecarAppchain(ctx *cli.Context) error {
} }
func getPubKey(keyPath string) (crypto.PublicKey, error) { func getPubKey(keyPath string) (crypto.PublicKey, error) {
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub") privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
...@@ -171,7 +171,7 @@ func initClientWithKeyPath(ctx *cli.Context, chainAdminKeyPath string) (rpcx.Cli ...@@ -171,7 +171,7 @@ func initClientWithKeyPath(ctx *cli.Context, chainAdminKeyPath string) (rpcx.Cli
return nil, nil, fmt.Errorf("init config error: %s", err) return nil, nil, fmt.Errorf("init config error: %s", err)
} }
adminPriv, err := asym.RestorePrivateKey(chainAdminKeyPath, "bitxhub") adminPriv, err := asym.RestorePrivateKey(chainAdminKeyPath, "link33")
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
......
...@@ -20,7 +20,7 @@ var idCMD = cli.Command{ ...@@ -20,7 +20,7 @@ var idCMD = cli.Command{
keyPath := filepath.Join(repoRoot, "key.json") keyPath := filepath.Join(repoRoot, "key.json")
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub") privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil { if err != nil {
return err return err
} }
......
...@@ -42,13 +42,13 @@ const ( ...@@ -42,13 +42,13 @@ const (
NodeKeyName = "node.priv" NodeKeyName = "node.priv"
// KeyPassword // KeyPassword
KeyPassword = "bitxhub" KeyPassword = "link33"
// API name // API name
APIName = "api" APIName = "api"
// Bitxhub type // Bitxhub type
BitxhubType = "bitxhub" BitxhubType = "link33"
) )
var RootPath string var RootPath string
...@@ -166,7 +166,7 @@ func NodeKeyPath(repoRoot string) string { ...@@ -166,7 +166,7 @@ func NodeKeyPath(repoRoot string) string {
func LoadPrivateKey(repoRoot string) (crypto.PrivateKey, error) { func LoadPrivateKey(repoRoot string) (crypto.PrivateKey, error) {
keyPath := filepath.Join(repoRoot, KeyName) keyPath := filepath.Join(repoRoot, KeyName)
return asym.RestorePrivateKey(keyPath, "bitxhub") return asym.RestorePrivateKey(keyPath, "link33")
} }
func GetAPI(repoRoot string) (string, error) { func GetAPI(repoRoot string) (string, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment