I guess you have a script that queries your followers and adds them to the whitelist?
🔥🔥🔥
Add some pow to your important posts and they can stay up on on the front page at https://powrelay.xyz/explore as long as you want
Or, even better, a native client that let's you sort by pow.
I don't know of anything like this yet :(
Add some pow to your important posts and they can stay up on on the front page at https://powrelay.xyz/explore as long as you want
#[0] would it be possible to have a button or something to increase the pow for a particular post? would help with this problem imho.
Most of you have dir he'd Twitter, but this is a pretty insane giveaway.
Oshi is giving away 1% of my #Bitcoin sales (on oshi) IN PERPETUITY. 😲🍷
https://twitter.com/OshiApp/status/1643341513210863631?t=QjwMMLvrH099d_6JIdkSvg&s=19
Add some pow to your important posts and they can stay up on on the front page at https://powrelay.xyz/explore as long as you want
Respect their pow:
#[0]
Validate their block
Thanks for testing, you're the top on the daily. 👑
Let me know if you have any suggestions, still a bit rough around the edges but I'm improving it bit by bit.
#[0] are you open source? Would be cool to run a relay to backup the posts of the people I follow too.
#[0] dominating the front page of https://powrelay.xyz today
Just learned aboutwss://relayable.org
Very cool project. We need more experimentation in the relay space. #[0] mentioned a captcha relay, that would be cool too.
If it helps here's the little js function I use to count the bits of work for the webui at https://powrelay.xyz
function zeroLeadingBitsCount(hex32) {
let count = 0;
for (let i = 0; i < 64; i += 2) {
const hexbyte = hex32.slice(i, i + 2); // grab next byte
if (hexbyte == '00') {
count += 8;
continue;
}
// reached non-zero byte; count number of 0 bits in hexbyte
const bits = parseInt(hexbyte, 16).toString(2).padStart(8, '0');
for (let b = 0; b < 8; b++) {
if (bits[b] == '1' ) {
break; // reached non-zero bit; stop
}
count += 1;
}
break;
}
return count;
};
You could add this to your site and have some code that only shows posts with more than some number. Then you'll need to add a function to let users generate pow locally on their browsers.
(stolen from https://git.qcode.ch/nostr/nostrweb/pulls/55)
If it helps here's the little js function I use to count the bits of work for the webui at https://powrelay.xyz
function zeroLeadingBitsCount(hex32) {
let count = 0;
for (let i = 0; i < 64; i += 2) {
const hexbyte = hex32.slice(i, i + 2); // grab next byte
if (hexbyte == '00') {
count += 8;
continue;
}
// reached non-zero byte; count number of 0 bits in hexbyte
const bits = parseInt(hexbyte, 16).toString(2).padStart(8, '0');
for (let b = 0; b < 8; b++) {
if (bits[b] == '1' ) {
break; // reached non-zero bit; stop
}
count += 1;
}
break;
}
return count;
};
You could add this to your site and have some code that only shows posts with more than some number. Then you'll need to add a function to let users generate pow locally on their browsers.
I don't think that's a problem. Relays need to be able to deal with spam, this is good for nostr.
Your client could either just read from relays that are really restrictive about spam, like mine, or filter client-side.
I think the best solution would be to just use wss://powrelay.xyz
You'd need to setup a some kind of js miner though so that posts could make it in (otherwise people would make a post and never see it). Currently you only need ~4 bits of work to make it into the relay so even a naive implementation would be fine.
I'm trying to understand how it works. So do you generate a new pub/priv key for each post?