Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • Jun 27 21:04
    noctisatrae commented #1258
  • Jun 27 21:03
    noctisatrae commented #1258
  • Jun 27 02:00
    bmatusiak commented #1258
  • Jun 26 22:29
    noctisatrae reopened #1258
  • Jun 26 22:29
    noctisatrae commented #1258
  • Jun 26 21:43
    amark commented #1258
  • Jun 26 21:42
    amark commented #1258
  • Jun 26 21:35
    noctisatrae closed #1258
  • Jun 26 21:35
    noctisatrae commented #1258
  • Jun 26 14:15
    draeder updated the wiki
  • Jun 26 14:14
    draeder updated the wiki
rococtz
@rococtz:matrix.org
[m]
Think about in real life, how do you get the phone number of an old friend? Do you just open the phone book and call the first guy that matches their name? Of course not. You knock on their door in person, you find them at work, you call their mom and ask for the phone number or maybe you email them and ask for it. It's the same with Gun. If you don't know someone's public key, you contact them in real life or via email or whatever and they tell you their public key. Then you take it and record it in Gun somehow. That's why people can create URL which contain their public key and give that URL to friends. The app logic knows how to parse the public key from the URL and "friend" them.
βτεsηΘω
@bresnow
is there a limit to the amount of peers a static instance can hold? My brain is telling me its six but my heart feels like i may have dreamed it
rococtz
@rococtz:matrix.org
[m]
@xenfasa: Pro of using user & pass: it's easy to login from any device connected to the internet (you don't have to carry the keys around)
Con: you use some stupid password like "Password1" and someone will hack your account
Daniel Raeder
@draeder
@rococtz:matrix.org Interesting analogy.. I just popped in over here to see what you guys think of using a randomly generated SEA pair's public key as an encryption key .. Fundamentally all 4 keys created by SEA.pair() are cryptographically secure.. do you see any issues using the pub or epub key to encrypt for temporary decryption?
1 reply
@bresnow 6 is correct.. the rest have their data 'daisy chained' or gossiped to other peers subscribed to that data
βτεsηΘω
@bresnow
homeless-man-begging-for-money-2022-01-30-09-23-37-utc.jpg
Daniel Raeder
@draeder
Ugh.. went to edit my post but accidentally deleted it... Anyway, rewriting gunsafe as a library instead of a CLI utility... one can build a utility with the library. Will probably commit & publish it in a couple days
βτεsηΘω
@bresnow

Ugh.. went to edit my post but accidentally deleted it... Anyway, rewriting gunsafe as a library instead of a CLI utility... one can build a utility with the library. Will probably commit & publish it in a couple days

I'm doing something similar with env vars

store the ! in ~/.bin and hold environment vars for multiple projects
Daniel Raeder
@draeder
@bresnow My first version of gunsafe used env vars.. @bmatusiak 's keypair.js does away with the need for storing secrets
βτεsηΘω
@bresnow
I saw...
I've seen it... cool stuff
@draeder you always know where to find the cool stuff
Daniel Raeder
@draeder
I'm storing an encrypted copy of the SEA pair for the 'original' gunsafe instance in Gun temporarily (encrypted by a random SEA pair) for device sync, then I null out the record after pairing is complete..
βτεsηΘω
@bresnow
I likey
cant wait to see it
Daniel Raeder
@draeder

@draeder you always know where to find the cool stuff

xD

βτεsηΘω
@bresnow
/use it
@draeder i saw your bugout repo
βτεsηΘω
@bresnow
dope... i dont understand the use case fully tho
Daniel Raeder
@draeder
Bugout was written by Chris McCormick, but I am a maintainer.. I built Bugoff on top of Bugout for ephemeral messaging in Gun.. but have since learned I can do it with Gun by encrypting the messages and nulling them out after they are consumed.. My library called Entangler is based on Bugoff .. but with @bmatusiak 's keypair.js, I no longer need TOTP.. I will probably rewrite Entangler soon with the pairing solution I'm using for gunsafe
I have to give a lot of credit to Chris McCormick for helping me on my javascript and decentralization journey.. I wouldn't be here if it weren't for Bugout
βτεsηΘω
@bresnow
ok nice
βτεsηΘω
@bresnow
@draeder forgive me if im missing something but with keypair.js... wouldnt SEA.work essentially do the same thing?
if I worked my keypair with 1 password
Manwë
@Manwe-777
Anyone here used bundlr/arweave to store documents like dids? Im wondering if ot would be possible to store parts of a graph, specifically the user logins there for true p2p decentralized logins.. 🤔
Helix
@hownowbrowncow_8635:matrix.org
[m]

I always wondered about the idea of storing user credentials as a file you submit as a login method.

An encrypted file, to be specific, for security's sake.

I know closed-source chat client "Utopia" does that.
Daniel Raeder
@draeder

@draeder forgive me if im missing something but with keypair.js... wouldnt SEA.work essentially do the same thing?

What is cool about keypair.js outside of SEA is that you can pass in additional data.. a salt of sorts. With that, you can make your pair specific and never-changing... So, using something like your hardware ID, you have a solid login....

Wetesy
@Proto133
@bmatusiak where do I put this code? Because I am not having any success...
Azarattum
@Azarattum
Hello! Is there a way to grant a revokable access certificate?
1 reply
Azarattum
@Azarattum
Is it possible to efficiently search a gun database?
1 reply
Azarattum
@azarattum:matrix.org
[m]
How do I sync the data from relay to a client? Let's say I have a client which is disconnected, then relay peer changes some data (the timestamp is newer now). Then client connects with GUN("http://localhost:8080/gun"); and listens for data gun.get("storage").on((data) => {. But I receive the value from my localstorage instead of the peer (where it is newer). If I then update the data while the client is connected, it becomes synced again. But how do I handle data sync on an initial connect?
4 replies
Btw, I've spent more than 5min trying to figure this out xD)
Lexi
@Lexi:matrix.org
[m]
@bresnow @draederwasn't the limitation of 6 peers only for browser peers? Can't remember reading that it applied to relays as well 🤔
Bradley Matusiak
@bmatusiak
@Proto133 do what now?
Omarabuziad
@Omarabuziad
@draeder @amark @bmatusiak @Lexi:matrix.org @ilhamgum
i will ask this question again ,
what is the purpose of the storage adapter for the relay servers? and should we store the data inside storage adapted? or it's enough to store it at a folder radata for production ?
Bradley Matusiak
@bmatusiak
@Omarabuziad i use aws-s3 on heroku , localStorage for browser
8 replies
Sarah Kay
@SarahKay99
image.png
I´m struggling to get a relay server running
Sarah Kay
@SarahKay99
image.png
this is my client side that should connect to the relay server
Bradley Matusiak
@bmatusiak
i think its because http needs to be https when using SEA
Sarah Kay
@SarahKay99
okay i´ll try that. thanks!
yeah it doesnt work still :/
also, another question, does the relay server need to specify any peers?
Sahara NFT
@SamiLaayouni_twitter
I'm struggling to get a user authentication system working on nextjs. For some reason the user is never created. I don't know if this has something to do with the fast refresh. Any help would be appreciated.
rococtz
@rococtz:matrix.org
[m]
@SarahKay99: If you only want a relay, then just do this:
npm install gun && cd node_modules/gun && npm start
hi 👋🏻
@useWallie_twitter
What about making the relay “sticky”? From any of the monitoring tools / api’s, would there be a way to see how the relay is configured? Id like to see if i can present that at a top level with a green or organge light next to my connection string.