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
return nil, fmt.Errorf("init config error: %s", err)
}
privateKey, err := asym.RestorePrivateKey(keyPath, "bitxhub")
privateKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil {
return nil, err
}
......@@ -401,7 +401,7 @@ func loadClient(keyPath string, grpcAddrs []string, ctx *cli.Context) (rpcx.Clie
}
func getPubKey(keyPath string) (string, error) {
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub")
privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil {
return "", err
}
......@@ -414,7 +414,7 @@ func getPubKey(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 {
return "", err
}
......
......@@ -296,7 +296,7 @@ func getSidecarAppchain(ctx *cli.Context) error {
}
func getPubKey(keyPath string) (crypto.PublicKey, error) {
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub")
privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil {
return nil, err
}
......
......@@ -171,7 +171,7 @@ func initClientWithKeyPath(ctx *cli.Context, chainAdminKeyPath string) (rpcx.Cli
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 {
return nil, nil, err
}
......
......@@ -20,7 +20,7 @@ var idCMD = cli.Command{
keyPath := filepath.Join(repoRoot, "key.json")
privKey, err := asym.RestorePrivateKey(keyPath, "bitxhub")
privKey, err := asym.RestorePrivateKey(keyPath, "link33")
if err != nil {
return err
}
......
......@@ -42,13 +42,13 @@ const (
NodeKeyName = "node.priv"
// KeyPassword
KeyPassword = "bitxhub"
KeyPassword = "link33"
// API name
APIName = "api"
// Bitxhub type
BitxhubType = "bitxhub"
BitxhubType = "link33"
)
var RootPath string
......@@ -166,7 +166,7 @@ func NodeKeyPath(repoRoot string) string {
func LoadPrivateKey(repoRoot string) (crypto.PrivateKey, error) {
keyPath := filepath.Join(repoRoot, KeyName)
return asym.RestorePrivateKey(keyPath, "bitxhub")
return asym.RestorePrivateKey(keyPath, "link33")
}
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