amark on master
redo landing page using iris co… togglable sidebar on mobile move images to iris, move iris … and 1 more (compare)
amark on manhattan
merge checks we left out during… (compare)
amark on manhattan
slight tweak? Let's see how lon… (compare)
amark on manhattan
safer to have it here (compare)
amark on manhattan
YAYAYAYAYAYAYAY past where we s… (compare)
amark on manhattan
back where we ( @rogowski ) sta… (compare)
amark on manhattan
2 steps backwards, 1 step forwa… Merge branch 'manhattan' of htt… (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"
};