OSDN Git Service

fix typo & change seed
authorjianyixun <317316abcd@163.com>
Mon, 25 Sep 2017 01:43:58 +0000 (09:43 +0800)
committerjianyixun <317316abcd@163.com>
Mon, 25 Sep 2017 01:43:58 +0000 (09:43 +0800)
fix typo
change seed "bytom seed"

cmd/bytomcli/main.go
crypto/ed25519/chainkd/chainkd.go

index 4e76043..685ea65 100644 (file)
@@ -4,6 +4,7 @@ import (
        "bytes"
        "context"
        "strconv"
+       "encoding/hex"
        stdjson "encoding/json"
        "flag"
        "fmt"
@@ -783,8 +784,8 @@ func listKeys(client *rpc.Client, args []string) {
                Aliases      []string      `json:"aliases,omitempty"`
        }
        var in requestQuery
-       in.After = arg[0]
-       in.PageSize, _ = strconv.Atoi(arg[1])
+       in.After = args[0]
+       in.PageSize, _ = strconv.Atoi(args[1])
        var response interface{}
        client.Call(context.Background(), "/list-keys", &in, &response)
        fmt.Printf("responses:%v\n", response)
index 5066f35..a666113 100644 (file)
@@ -31,7 +31,7 @@ func NewXPrv(r io.Reader) (xprv XPrv, err error) {
                return xprv, err
        }
        hasher := sha512.New()
-       hasher.Write([]byte("Chain seed"))
+       hasher.Write([]byte("Bytom seed"))
        hasher.Write(entropy[:])
        hasher.Sum(xprv[:0])
        modifyScalar(xprv[:32])