package main
import (
"fmt"
"github.com/nbd-wtf/go-nostr"
"io/ioutil"
"log"
)
func main() {
// Generate a new private key
sk = "private key"
// Derive the public key from the private key
pk, _ := nostr.DerivePublicKey(sk)
// Encode the private key into NIP-19 format
nsec, _ := nostr.EncodePrivateKey(sk)
// Encode the public key into NIP-19 format
npub, _ := nostr.EncodePublicKey(pk)
filePath := "path/to/your/file.txt"
// Read the file into a byte slice
content, err := ioutil.ReadFile(filePath)
if err!= nil {
log.Fatalf("Failed to read file: %v", err)
}
// Convert the byte slice to a string
dmcontent := string(content)
// Create a new event to represent the DM
event := &nostr.Event{
Type: "dm",
Payload: map[string]interface{}{
"recipient": npub,
"content": dmcontent,
},
Timestamp: nostr.Now(),
Signature: sk.Sign([]byte(fmt.Sprintf("%s %s", nsec, npub))),
}
// Publish the event to a relay
relayURL := "wss://your-relay-url-here"
err = nostr.Publish(event, relayURL)
if err!= nil {
fmt.Println("Error publishing event:", err)
return
}
fmt.Println("Direct message sent successfully!")
}
I uninstalled it after realizing I couldn't add my own app easily. Couldn't find any apps that were interesting enough. Maybe the wiki one?
I'm writing a nostr to web bridge for termux. Not sure if I'll be able to convince many people to use it cause command line is scary
Actually there is a how to buy section, but it's out of date cause it lists localmonero and binance, and no explanations for how to do an LTC to XMR swap.
Also, no need to bother with tails these days when Tor browsers are on iOS and Android
Need to write Darknet Koran? 😁
nostr:nevent1qqsrn5h4flz04w2zu82ar5z3x0hf7m96hx0eec9t8xdake8qh43l88cpz4mhxue69uhhyetvv9ujumt0wd68ytnsw43qygptn2pgjylfgkerz4qx2g7qu4u2qa4664h283820ycnjtms6x528spsgqqqqqqszh2agc
I've heard people using torrents with i2p. I use protonvpn cause it's faster.
There is demand for tor admins, and good money there, but high risk and hard to negotiate a deal (everyone can scam).
Check out Pitch and Dread. Sometimes there are jobs for crypto there.
Saifedean pushes for bitcoin to be a pension plan. His shortest investment window is 5 years. This is unsuitable for young people. And boomers are too lazy to learn how to maintain a wallet properly.
None of this matters. Let's see how BTC does in 2029.
Not poor in N years. Let's see how many don't sell to BlackRock. I bet most will dump their bitcoin to buy cars and TVs which I will steal from them for free 😁
I want lockdowns to return. I really enjoyed the easily avoidable suffering that was imposed on the cowards. So hilarious to see them all complain in the identical fashion
But that's not caused by social media. And ads can be blocked. My point is that it's not fair to compare it to pharmaceuticals that can put you on the floor. It's actually rather nice to be able to fill your time with chatter and memes on demand.
None of what you described is a problem. Nostr is a chat room about bitcoin, and it's inferior entertainment compared to YT and tiktok.
The algorithm is mostly RL with the loss function based on the watched duration. Many people prefer that to search, cause it's simpler.
No one forces people to use jewtube or fagbook, ya know?
I have defeated the great firewall a few years ago to access gmail and watch jewtube when I was in China. It was fairly simple. Torrents worked flawlessly too.
I'm not a whiny coward, you see. If something is a problem, I push myself to fix it.
My Chinese friend has been using a VPN for 10 years. It's annoying but not difficult.
I keep hearing people talk about those lists. Where are they? Are those completely secret? Then who cares? If they're used to control your bank account, then the bank must be able to see it. Do you have any evidence that it exists?
I have used bitcoin to buy illegal drugs online like thousands of other people and none of us ever faced any punishment. This is the main type of censorship in the US and EU (less so).
Stop being afraid. Likely the supposed watchers are not competent, and they don't give a shit about your data.
They're not cowards. They're lazy. They think the firewall is a good filter against bad US propaganda.
There is censorship on the other side of the great firewall too. Copyright and drugs. I'd even half count Trump being kicked out social media too. Most people are too lazy to learn torrents and crypto to buy drugs. They'd rather pay cash and get netflix, or local dealer. For this same reason Nostr will remain small.
Not really. It's now 9 hours of phone instead of 9 hours of TV. People wanna turn on the TV, and turn off their brains. Your efforts are wasted trying to fix that.
I'd like a communication platform based on quality instead of quantity, but how will it be funded without ads? Drug trade is the only possibility I see.
Show me who's making 10+M SAT a month. Who's the most zapped user?
IRC (freenode) survived as a non profit, but kinda dying now. I'm pondering to go back there or matrix. Nostr is hit or miss. Often very little responses or interesting talks.
Fiat buys food, bitcoin doesn't. Fiat puts fuel in your tank. What's the point of your bitcoin knowledge aside from number go up?
Thanks. I like a few random people who pop up. It reminds me of IRC a lot. Different format, but similar vibe. Small and cozy. Not like twitter where your meme can easily get 10K shares and likes.
I'm waiting for Letr to come out. It sounds more appropriate for deeper thoughts.
Notes by Layerjack (Onion Knight) | export