diff --git a/README.md b/README.md index 7ce2eed..e767c92 100644 --- a/README.md +++ b/README.md @@ -77,13 +77,7 @@ for status := range statuses { ``` go sk, _ := nostr.GenerateKey() -mnemonic, _ := nostr.PrivateKeyAsMnemonic(sk) -fmt.Println("sk:", nostr.PrivateKeyAsHex(sk)) -fmt.Println("pk:", nostr.PublicKeyAsHex(sk.PublicKey)) -fmt.Println("mnemonic:", mnemonic) - -sk2, _ := nostr.PrivateKeyFromMnemonic(mnemonic) -fmt.Println("from mnemonic:", nostr.PrivateKeyAsHex(sk2)) +fmt.Println("sk:", sk) +fmt.Println("pk:", nostr.GetPublicKey(sk)) ``` -