Open
Conversation
Defines the identity NUB with 9 query methods (getPublicKey, getRelays, getProfile, getFollows, getList, getZaps, getMutes, getBlocked, getBadges). All queries are strictly read-only. No signing, encryption, or decryption is exposed through this interface. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a note paragraph after the ProfileData interface clarifying that napplets fetch picture and banner bytes via window.napplet.resource.bytes(url) per NUB-RESOURCE. Napplets cannot use direct <img src=https://...> loads under the NIP-5D iframe sandbox (sandbox='allow-scripts', no allow-same-origin); the shell is the sole network-fetch broker. No wire change, no type change — documentation-only addition. Pre-amendment napplets that already use resource.bytes(url) for these fields continue to work; the clarification only documents the existing contract more clearly. The standard NUB-RESOURCE policy (private-IP block list at DNS-resolution time, MIME byte-sniffing, optional SVG rasterization) applies — there is no privileged 'identity bytes' path that bypasses Default Resource Policy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Namespace:
window.napplet.identityDiscovery:
window.napplet.shell.supports("identity")Status:
draftSummary
identity, Namespace:window.napplet.identityDesign rationale
Identity queries replace the read-only subset of NIP-07 functionality. Napplets need to know the user's pubkey, profile, and social graph, but must not have access to signing keys or cryptographic operations. This separation is a security boundary: the shell controls all signing and encryption.
Implementations
References