OSDN Git Service

fix argument name of keyFileName
authorfreewind <nowindlee@gmail.com>
Tue, 8 May 2018 10:37:20 +0000 (18:37 +0800)
committerfreewind <nowindlee@gmail.com>
Tue, 8 May 2018 10:37:20 +0000 (18:37 +0800)
blockchain/pseudohsm/key.go

index 55405c8..54a08b8 100644 (file)
@@ -95,9 +95,9 @@ func zeroKey(k *XKey) {
 
 // keyFileName implements the naming convention for keyfiles:
 // UTC--<created_at UTC ISO8601>-<address hex>
-func keyFileName(keyAlias string) string {
+func keyFileName(keyId string) string {
        ts := time.Now().UTC()
-       return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), keyAlias)
+       return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), keyId)
 }
 
 func toISO8601(t time.Time) string {