GM nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gprfmhxue69uhkcmmrdd3x77pwve5kzar2v9nzucm0d5hszxnhwden5te0wpuhyctdd9jzuenfv96x5ctx9e3k7mf0qydhwumn8ghj7un9d3shjtnhv4ehgetjde38gcewvdhk6tc4rdlnm, nostr:nprofile1qqszv6q4uryjzr06xfxxew34wwc5hmjfmfpqn229d72gfegsdn2q3fgpzfmhxue69uhkummnw3e82efwvdhk6tcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszythwden5te0dehhxarj9emkjmn99urf278z. I'm trying to test Khatru's new Blossom blob mirroring functionality.

Unfortunately, nak doesn't support Blossom mirroring yet. What do you recommend for testing this?

#askNostr #devstr #blossom #bud04 #mirroring

Reply to this note

Please Login to reply.

Discussion

nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gprfmhxue69uhkcmmrdd3x77pwve5kzar2v9nzucm0d5hszxnhwden5te0wpuhyctdd9jzuenfv96x5ctx9e3k7mf0qydhwumn8ghj7un9d3shjtnhv4ehgetjde38gcewvdhk6tc4rdlnm seriously? why? :brokenheart:

I may be proven wrong soon, but something tells me that the answer here will be: Just write your own - https://github.com/hzrd149/blossom-client-sdk . Side quest: contribute mirroring functionality to nak. Sub side quest: Figure out NIP-34.

bak. blossom army knife?

A Blossom specific CLI client kept in sync with the latest specs would be great. IMe and nak are not best buddies (skill issues on my side, but I fail to grasp auth with multiple nsecs and am not sure how I got it to work in the first place, lol).

of course. i like nak. its great for development. bak can help to develop blossom server and clients too.

nak must contain a highly customizable relay internally. so you can spin up a relay and test your client. or spin up a blossom server with bak and test your client.

they must be tools that can act as both server/relay and clients. all that you need to develop on nostr.

I like this for sure. You sound very familiar with nak. Can I ask you as customer service for software that you didn't egent write?

Say that I have nsec 01 and nsec 02 and I want to alternate between the two (not mulsig, each key signs different events).

Is there a way to alternate between the keys without raw dogging it on my shell? Say:

~> nak blossom --server blossom.azzamo.net --sec 01 upload image.png

{"sha256":"38c51756f3e9fedf039488a1f6e513286f6743194e7a7f25effdc84a0ee4c2cf","url":""}

~> nak blossom --server blossom.azzamo.net --sec 02 delete 38c51756f3e9fedf039488a1f6e513286f6743194e7a7f25effdc84a0ee4c2cf

(Should fail ad nsec 02 can't delete nsec 01 blobs).

Is there a way that I can store my nsecs somewhere and alternate between nsec01 and nsec02 using their pubkeys, etc?

You can use environment variables maybe? $NOSTR_SECRET_KEY is used by default by nak if nothing is specified, but you could just use arbitrary environment variables while constructing your commands.

Thanks for coming to the rescue Fiatjaf. This is better for sure, and now that you mentioned it... It was on the README the entire time 🤣 (apologies for wasting your time).

It would be awesome if we could use nak --connect '[bunker url]' multiple times and then reference the nsecs by npub or index though. I understand that I can just set bunker urls (or nsec for all that matters) in env variables, but for most purposes this isn't much safer than just rawdogging the Bunker urls or nsecs directly.

The examples in the readme had me 😵‍💫 feels like i missed a prereq. Or maybe i shouldnt start things before bed

it seems fiat answered this already. i learnt a new thing as well!

Omg thanks for going on all of these quests 😅

The functionality was merged into nak.

going to update my nak.

nostr:nprofile1qqswa8vhnelpgx9f7arjhtuzmjtqs2sdgfgmw77tzu9xankf87kl7eqpzdmhxue69uhhwmm59e6hg7r09ehkuef0qydhwumn8ghj76rpwejkutnpvd3kjmmv0yh8xmmrd9skctcprdmhxue69uhhg6r9vehhyetnwshxummnw3erztnrdakj7jk0p5w here we go.

I somehow never got a notification for this. Thanks Fiatjaf. By the way, I'll come back to that PR. Struggling with IRL stuff atm.

I would just use primal to test. Are you playing with putting on haven now?

I didn't know Primal supported mirroring. I'll give it a try. Actually, fiatjaf added it to Khatru. Looks like it should work out of the box as it reuses StoreBlob. https://github.com/fiatjaf/khatru/commit/3da898cec7b45fb32d25e63652e0210607f62163 I just want do double check it and then will open a PR upstream ;).