-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add scoping for window.ipfs.name.publish and window.ipfs.key #452
Comments
For now we will disable |
This is the missing piece to allow apps to mutate a data set ala Beaker right? CC @Jermolene |
@edrex Yes, basically scoping Digression: restoring those APIs in |
@lidel Now that js-ipfs supports IPNS, can we resume the discussion around this topic? To give you some context, both Using companion would improve the experience, specially in workshops were things work really fast inside the same network. I will be giving a workshop in IPFS Camp about Nomios and would be really nice if we could use companion 🙏 |
@satazor we can add |
Thanks for the quick response. Yes we need to be able to import a key in order to publish a IPNS record with it (it’s different than the one used to identify the peer). Note that we only need to import it because |
@satazor if you need If you are okay with doing the demo with js-ipfs, then we can add it and release before IPFS Camp. |
Closing due to #589 (comment) IPNS resolution via js-ipfs running on a page in web browser is tracked in ipfs/js-ipfs#2921 |
Problem
window.ipfs.name.publish
enables sites to publish content to IPNSipfs.keys.ls
ipfs.name.publish
andipfs.keys.ls
is enough, shifting responsibility to userThis PoC will use default key and publish under your
PeerID
:Potential Solutions
ipfs.keys
andipfs.name.publish
should be scoped in a fashion similar toipfs.files
window.ipfs.key.gen
should be prefixed with unique scope and everything that is not in scope should be filtered out in allwindow.ipfs.keys.*
ipfs.name.publish
defaults toself
key if key name is not provided which means publishing to/ipns/<PeerID>
cc @alanshaw
The text was updated successfully, but these errors were encountered: