Once the notes are in your relay you write apps just like for the public nostr, just only querying that relay. A kind 1 client, will just query:

{ kinds: [1] }

and the relay will handle the rest.

For example take a look at the code for the topic view in the forum

https://git.arx-ccn.com/Arx/Eve/src/branch/master/src/routes/Arbor/TopicView.ts

There's nothing in the code that deals with encryption, there's a complete separation of concerns.

```

this.subscription = ndk

.subscribe({

kinds: [893 as NDKKind],

'#E': [this.topicId],

});

```

The client doesn't know how the encryption works, it all happens automagically; the relay manages everything.

Reply to this note

Please Login to reply.

Discussion

Any query that works on nostr, for open, non encrypted data, will work on Eve for your Closed Community Networks' specific content, no matter how complex the query, if it can be done on public nostr relays, it can be done on your private Eve Relay (and there will also be more complex queries supported in the future, such as negative queries).

Ok, I didn't express myself clear enough, sorry.

I mean, let's I open a 3D models app and I want to give it access to the private 3D models of my groups.

How can I do that, without it having to download and decrypt the whole group state?

Do I then have to send (somehow) the relevant events from the device/app where I do have the full group state (relay)?

It being a relay, might already help with that though. So maybe there's something there.

Right now this is not built, but the relay will also act as a blossom relay, which will allow you to upload files to your community (and the files are also encrypted and shared in the same way).

I don't think that the space required to download and decrypt the group state is a concern right now, nor is it in scope for Eve to be honest.

The expected use case assumes you communicate with your community from a single device, sharing data from other devices to the one running Eve is a solved problem (syncthing works well for example).

Looks like there is a lot of overlap with communikeys but Alex is specifically focused on private groups. Your approach is very interesting!

s/Alex/Arx 😅

Thanks for these replies man!

Will look into it more when my brain doesn't say "It's Friday dude, wut you doing?".

Definitely align a lot with your goal.