Przeglądaj źródła

The PublicKey() method is an addition in Go 1.4

Jakob Borg 10 lat temu
rodzic
commit
9e210d705d
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 	}