ソースを参照

The PublicKey() method is an addition in Go 1.4

Jakob Borg 10 年 前
コミット
9e210d705d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      lib/signature/signature.go

+ 1 - 1
lib/signature/signature.go

@@ -44,7 +44,7 @@ func GenerateKeys() (privKey []byte, pubKey []byte, err error) {
 	})
 
 	// Marshal the public key
-	bs, err = x509.MarshalPKIXPublicKey(key.Public())
+	bs, err = x509.MarshalPKIXPublicKey(&key.PublicKey)
 	if err != nil {
 		return nil, nil, err
 	}