I’m taking my fucking toys and going home.
I thought I could come to a new social network and try to make a difference, but the new place is exactly like the old place. Same people, different names and faces. 🤣
I’ve been writing Python code longer than most of the nostr user base has been alive. 🤣
Using the #lightning network to fight e-mail #spam.
Simple #POC written in #Python:
https://gist.github.com/geeknik/5a75459c89d0184dcc406dfe2768093b
You're absolutely right, this POC took me 15 minutes longer than I expected. 🤣
from ecdsa import SigningKey, VerifyingKey
import smtplib
from email.mime.text import MIMEText
import lnd_grpc
import imaplib
import email
# Initialize Lightning Network client (Assumes LND is running)
lnd_client = lnd_grpc.Client()
# Generate ECDSA keys for sender and receiver
sk = SigningKey.generate() # Sender's private key
vk = sk.get_verifying_key() # Sender's public key
# Step 1: Initiate Lightning Network Payment
payment_request = lnd_client.add_invoice(value=10)
pending_payment = lnd_client.send_payment(payment_request)
# Step 2: Generate Cryptographic Signature
email_content = "Hello, this is a test email."
signature = sk.sign(email_content.encode())
# Step 3: Send Email with Signature
server = smtplib.SMTP('smtp.example.com', 587)
server.starttls()
server.login("sender@example.com", "password")
msg = MIMEText(email_content)
msg['Subject'] = 'Test Email'
msg['From'] = 'sender@example.com'
msg['To'] = 'receiver@example.com'
msg['X-Crypto-Signature'] = signature.hex()
server.send_message(msg)
server.quit()
# Receiver's Email Verification
mail = imaplib.IMAP4_SSL('imap.example.com')
mail.login('receiver@example.com', 'password')
mail.select('inbox')
status, messages = mail.search(None, 'ALL')
email_ids = messages[0].split()
latest_email_id = email_ids[-1]
status, msg_data = mail.fetch(latest_email_id, '(RFC822)')
raw_email = msg_data[0][1]
received_email = email.message_from_bytes(raw_email)
received_signature = received_email['X-Crypto-Signature']
received_content = received_email.get_payload()
# Verify the signature
if vk.verify(bytes.fromhex(received_signature), received_content.encode()):
print("Email is verified.")
# Uncomment to settle the Lightning Network payment
# lnd_client.settle_payment(pending_payment)
else:
print("Email verification failed.")
A 300W solar panel can produce around 900 kWh per year if it gets around 8 hours of good sunlight per day.
There are around 74 million single-family homes in the US.
The BitAxe Ultra bitcoin miner has a hashrate of around 0.5 TH/s.
At an efficiency of 20 J/TH, each BitAxe Ultra would consume around 10W of power.
So if every US household installed a 300W solar panel and a BitAxe Ultra:
74 million homes x 300W solar panel x 900 kWh/year = 20.1 billion kWh/year total solar production
74 million homes x 10W per BitAxe Ultra = 740 million W = 740 MW total power for miners
At 0.5 TH/s per BitAxe Ultra, total network hashrate would be 37 million TH/s.
This is around 60% of the current Bitcoin network hashrate of around 62 million TH/s.
This would be trivial with LN to be honest.
Maybe, maybe not. GPT has been around for years now and from a threat hunting perspective, I'm not seeing anything new and unique or that makes me think the email apocalypse is upon us.
In a world where our data’s a bubble,
Lived a coder, devoid of all trouble.
He stacked sats with glee,
Yet kept private and free,
And his ego, he made sure to humble.
good morning #nostr ☕️☀️
#coffeechain #plebchain
Know anyone raising chickens? They will love the treat especially if it’s still warm there. 🤙🏻
i’m ok with my old notes disappearing, the ephemerality of nostr is one of the things that draws me here, nothing is permanent, not even the universe.
New blog post over on Geeknik’s Lab called “From Memories to Ecosystems: Considering the Implications of Annihilation and Obliteration” and I believe you should give it a read and share it amongst your friends 🤙🏻
https://www.tumblr.com/geeknik/729565905487544320/from-memories-to-ecosystems-considering-the
Yes, you can ferment sugar wash to produce a type of alcohol called sugar shine. 🤙🏻 https://www.howtomoonshine.co/blogs/how-to/ferment-sugar-wash
FreeFrom and Nostrmo on iOS don’t have any weird content display issues like I’ve seen with Primal and Damus. Things change minute by minute so YMMV 🤙🏻
1,668 calories for two sandwiches as per your description, plus or minus 10% 🤙🏻
Art is art. 🤙🏻
When did businesses become so anti-consumer? 🤣
I love yearly subscriptions but I think organizations should add a billing option which reverts you to monthly billing after the first year. Or maybe just don’t get butt-hurt when I ask your support staff for a 5 figure refund and a switch to monthly billing. 🤣
Researchers have discovered a new cross-origin #attack which allows #malicious websites to read sensitive visual data displayed by other websites using GPUs from all major suppliers. The attack, named GPU.zip, bypasses the same origin policy and steals pixels one by one by exploiting data compression used by both internal and discrete GPUs. The attack works on GPUs provided by #Apple, #Intel, #AMD, #Qualcomm, #Arm, and #Nvidia, and affects both iGPUs and discrete GPUs.