amark on dev
if wifi off don't crash due to … axe doc music dht :) (compare)
username: *************
instead of username: %2aDgho!@nb
I replied to a question on stackoverflow
https://stackoverflow.com/questions/56044288/private-wite-and-public-read-in-gundb/57971655#57971655
And I ask you for help:
How to make a third user to add a comment to a post, only the author of the post and the author of this comment could edit / delete it?
Or, at least, how to make a comment which is in the third user graph, was associated with the post, located in the first user's graph?
SEA
:) API returns auto-verified data, but doesn't decrypt (actually amark/gun#783 messes up API reply of encrypted data), that will need to be done manually or with some future convenience method I'm hoping I can get others to support/maintain.
user.pair()
raises a deprecation warning. What whould I be using instead? I'm doing this and it's working great: // runs in browser A
const s2 = async bobEpub => {
const alice = user.pair();
if (typeof user.is !== "object") {
throw new TypeError("user.is not an object");
}
if (typeof bobEpub !== "string") {
throw new TypeError("bobEpub is not an string");
}
const sec = await SEA.secret(bobEpub, alice);
const enc = await SEA.encrypt("secret message", sec);
console.log(enc);
};
// runs in browser B
const s3 = async (encodedMsg, aliceEpub) => {
const bob = user.pair();
const sec = await SEA.secret(aliceEpub, bob);
const msg = await SEA.decrypt(encodedMsg, sec);
console.log(msg); // "secret message"
};
user._.sea