Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 20:16
    noctisatrae commented #1257
  • Jul 04 17:40
    draeder updated the wiki
  • Jul 04 17:37
    draeder updated the wiki
  • Jul 03 09:31
    pwFoo closed #1257
  • Jul 03 09:31
    pwFoo commented #1257
  • Jul 01 00:15
    alfonsocuccaro commented #259
  • Jun 30 23:49
    amark commented #259
  • Jun 30 14:34
    alfonsocuccaro commented #259
  • Jun 30 14:15
    draeder commented #259
  • Jun 30 08:41
    alfonsocuccaro commented #259
  • Jun 30 04:58
    amark commented #259
  • Jun 29 00:31
    fysoul17 commented #743
  • Jun 28 19:31
    noctisatrae commented #1258
  • Jun 28 19:31
    noctisatrae commented #1258
  • Jun 28 19:30
    noctisatrae commented #1258
  • Jun 28 19:30
    noctisatrae commented #1258
  • Jun 28 17:05
    bmatusiak commented #1258
  • Jun 28 17:00
    bmatusiak commented #1258
  • Jun 27 21:52
    noctisatrae commented #1258
  • Jun 27 21:06
    noctisatrae commented #1258
lain
@lain:iwakura.xyz
[m]
o ok
Kier
@syonfox
... So im looking into SEA/ users. And how do do user's decrypt data... say the server wants to give some data to a user do you HAVE to use the grant api and access it from bob.get('shared')put('yolo').grant(gun.get('~@Alice')) then can the Alice see gun.get('~@bob').get('shared') or does it also need to be placed in a public place. with something like bob> gun.get('shared').put(bob.get(shared)) // Alice can read but Keven cant??
Kier
@syonfox
or is it a just roll your own with sea kind of deal. ... is the user space accessible from other users. how does one publish a object that a user owns so others cant edit but anyone can see/decrypt depending on application
Mac16661
@Mac16661
How I can extract data return from content-addressing? Because it returning hash: data
Radu
@rococtz
@syonfox you never use public space for anything. you always use user space (with certify) or Content Addressing. For encryption see this
https://github.com/amark/gun/wiki/Snippets
1 reply
lain
@lain:iwakura.xyz
[m]
do you guys have any recommendations for increasing performance? i have a game and im using gun to sync player positions, calling .put(position) every say 50ms, but its pretty resource intensive and has a lot of latency
Radu
@rococtz
@lain:iwakura.xyz If you don't need to persist data (for example player position), why not use this one? https://peerjs.com/
also, how do you measure latency? latency between what and what?
3 replies
SiJinmin
@SiJinmin
hi @amark ! I'm sorry to spend your time for a very personal question, I promise I will be a fun of gun forever. ^^ The question is could you remember the link to the awesome tutorial of cryptography that you once provided in gun's documentation a few years ago? (In the new version gun documentation I cannot find it anymore.) I need this online tutorial to learn cryptography. thanks! ^^
asd417
@asd417
hi I'm new to this whole thing and I wonder how GUN handles proof of work or validating a peer's data
lain
@lain:iwakura.xyz
[m]
i had used yjs (a webrtc crdt database thing) before so i can use that for it i guess
Radu
@rococtz
@asd417 You can probably write a book about that :) But you can have a look yourself in the docs, maybe start with the Architecture chapter https://gun.eco/docs/
Or maybe this https://gun.eco/docs/Cartoon-Cryptography#cryptography for @SiJinmin as-well
SiJinmin
@SiJinmin
@rococtz yes, I have read these cartoons, but I want to learn the detail principles and algorithms for crypto, so I need a more detail tutorial about crypto. Thank you!
Edoardo Cremaschi
@NuclearManatee

a question about data modeling. How can I handle objects with arrays in it? Example:

let object = {
  scopes : [ 
    { name: 'a'},
   { name: 'b'}
  ],
  value : 'my value'

do I have any alternative other than decomposing the object and the array and saving into gun using gun.set() ?

Ty Rauber
@tyrauber
Hey All, I am exploring the use of Gun in Expo following the ReactNative example. I guess I have some questions on dependencies, specifically in regards to SEA. It looks like Metro doesn’t support dynamic imports? I am getting the error "Dynamic require defined at line 5; not supported by Metro”, related to the use function at line 15 of SEA.js. Anyone have some experience using Gun in Expo, or interest in helping sort out a demonstration? I am interested in building a simple client/server monorepo that demonstrates basic auth and chat.
James
@u007
gun.unset code chnanged? my code didnt work
gun.user().get('coins').unset(gun.user().get('coin/code1'));
1 reply
and also this issue
// does login here
let machines = gun.user().get('machines');
let machine = gun.user().get('machine/tesseract');
machine.put({faces: 24, cells: 8, edges: 32});
machines.set(machine);
// let's add machine to the list of machines;

let machine2 = gun.user().get('machine/tesseract2');
machine2.put({faces: 1, cells: 1, edges: 1});

machines.set(machine2);

gun.user().get('machines').map().once(() => {
    //this is called once only with machine, not machine2

})
Adam Bowman
@abow
if it did break, I'm guessing that rel and node aren't always "#" and "_"
gunchatbridge
@gunchatbridge
[D]Alta: should I mod gundb to have the features I need, and risk having my version and the original try to talk with each other or should I write my own version from scratch?
Mark Nadal
@amark
@resession :clap: :clap: ! w000!
@u007 when Browser B makes a query, it gets relayed to Browser A even if Relay has 0 data, and Browser A serves the data, then this gets re-cached on Relay.
@gun-db-fan:matrix.org :clap: @rococtz !
@syonfox that was a bug in the CPU scheduled JSON parser I wrote the other month, see PR that has a fix we're merging, or tell GUN to use regular JSON not mine. Sorry :(
@lain:iwakura.xyz :clap: @finwo , or maybe user a webpack ignore fs etc. (?) Or one of you want to do a screencall with me to see why webpack has changed... for the 7th time in 5 years? They really make library dev life miserable by constantly changing.
@u007 wat? Several other apps (like Svelte Fireship one) all export gun.user() and then reuse it several other places, same as with vanilla. What env are you in?
Hmm, so maybe Browser is fine but NodeJS really doesn't like the User and isn't staying logged in?
interesting @syonfox !
@syonfox once() usually calls undefined if no data can be found within some timespan on the current network. However .map() will make things stream, so you'd want to .once(checkNotFound).map().once()
@lain:iwakura.xyz :sweat_smile: I'm glad you were able to figure it out and fix!
@NuclearManatee :wave: ! :) :clap: @lain:iwakura.xyz !
... will catch up later on rest ... (or ping me if still need help on some)
tedd pasta
@azdez:matrix.org
[m]

just got released, if anyone wants to download agregore, here is the release link

https://github.com/AgregoreWeb/agregore-browser/releases/tag/v1.0.0-44

gun-fetch README.md is outdated btw, i'll update it before i go to sleep
i001962
@i001962:matrix.org
[m]
Thought this was pretty interesting idea and appropriate to some of the work here on SEA https://static1.squarespace.com/static/6182fa0bdec2ad76a2de22f0/t/61a54d333ed02a77d17716df/1638223155336/Polychain.pdf Not sure if the author is in this group anymore he was in the discord fro awhile
gunchatbridge
@gunchatbridge
[D]Alta: What happened to Amark?
Hsingai Tigris Altaica
@DrAlta
gunDB is awesome but I think I just want to use it because if I make a cool piece of software with gunDB the gundb community will talk about it... and using it asa marketing ploy seems wrong....
gunchatbridge
@gunchatbridge
[D]KMac (i001962): Discord ban likely for too many posts too quickly in a server (bluesky). Find him on chat.gun.eco
tedd pasta
@azdez:matrix.org
[m]
@DrAlta: are you talking about me? agregore is not my project.
Hsingai Tigris Altaica
@DrAlta
@azdez:matrix.org no. I'm talking about my My Country Talks clone for all types of divides not just political divides
Gideon Wislang
@GideonWislang
@amark How would you handle cross-signing with metamask public key and signed message
tedd pasta
@azdez:matrix.org
[m]
i have a dilema. i can either save secret/private keys in memory and on-disk. it will be encrypted of course, but still less safe since i will hold the data. or i can recreate a function i need from the dht/bencode module that the webtorrent dht uses, this would mean if the webtorrent team/feross ever updates that original function then it will break my module until i update mine and match their changes, this choice is safer though since i am not holding any secret/private keys, i am only holding signatures, so much more safer. which would you rather do?
tedd pasta
@azdez:matrix.org
[m]
i'll go with the second choice, safety comes first.
ranon rat
@ranon-rat
Hi
Im having a little bit weird problem
hm
im trying to put some data in a row or something idk called users
and idk why is giving me a problem
here is the error message
gun.js:1008 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at walk (gun.js:1008)
    at Gun.chain.put (gun.js:1045)
    at Object.goCiM.@parcel/transformer-js/src/esmodule-helpers.js (index.ts:5)
    at newRequire (index.aaf1df02.js:71)
    at index.aaf1df02.js:120
    at index.aaf1df02.js:143
someone can help me?
Radu
@rococtz
@ranon-rat can you share the code?
Mark Nadal
@amark
@syonfox (1) aliases are not unique so never use them for security things, only ever as an approximate search (2) grant is deprecated until future refactor, use .certify( instead like @rococtz :clap: linked.
@lain:iwakura.xyz if clocks aren't NTP synced, the latency is simulated. Sync has been fast enough for several other games, for years, what latency are you seeing? I'd love to try your game - I'm working with a couple others on some new ones too! Be cool to swap notes.
@SiJinmin :clap: :+1: @rococtz ! If not the cartoon, then which curves are detailed in https://gun.eco/docs/SEA . But I'm pretty sure you're probably remembering the cartoons.
@asd417 ^^^ :)
@NuclearManatee if you can tell us how you want array concurrency handled, then you probably understand why arrays are indeterminate without additional data, but can show you some hacks to wrap them.
@tyrauber :wave: :) this was just fixed by @aethiop use latest github and follow https://gun.eco/docs/React-Native instructions. Also he's just workign on an awesome tutorial too, I don't think finished yet tho: https://github.com/aethiop/jot !
@u007 I tried to replicate, I got both machines here. In-memory, no peers. You connected to peers?
@abow they're always that.
discord@Alta :wave: most features can be built ontop, including other CRDTs in 12 lines: https://gun.eco/docs/Counter . What are you wanting to make?
@azdez:matrix.org :fire:
@i001962:matrix.org :+1:
@DrAlta :laughing: no shame.
@GideonWislang pester https://twitter.com/shannonNullCode because they promised 5 times to upload their metamask login example and still haven't :P
@azdez:matrix.org :)
@ranon-rat :wave: this error message is fixed on GitHub latest, @rococtz this is when GUN().get('top').put('primitive') root level nodes need to be objects. Code crashed before getting to error message, been causing confusion for people, latest main properly logs what to do. Sorry about that!
1 reply
βτεsηΘω
@bresnow
loaderfunc.png
1 reply
Hey guys.. need some help mapping some data to the UI
Im using that new schnazzy Remix framework (which is pretty much just WebAPI stuff) ...I have my loader function here
loaderfuncMap.png
and im mapping it out here just for my app to tell me that map isnt a function
IMG_76339204646E-1.jpeg
my terminal is nice to me for a change