diff --git a/cmd/stvanity/main.go b/cmd/stvanity/main.go index 5cbfa6b4..2454205d 100644 --- a/cmd/stvanity/main.go +++ b/cmd/stvanity/main.go @@ -101,7 +101,7 @@ func generatePrefixed(prefix string, count *int64, found chan<- result, stop <-c default: } - derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, priv.Public(), priv) + derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, priv.PublicKey, priv) if err != nil { fmt.Println(err) os.Exit(1)