### Development Setup (Shell) Source: https://github.com/diegogurpegui/nos2x-fox/blob/main/README.md Provides the necessary commands to clone the repository, install dependencies, and build the nos2x-fox extension for development or local testing. This process sets up the project environment and compiles the extension files. ```shell $ git clone https://github.com/diegogurpegui/nos2x-fox $ cd nos2x-fox $ yarn install $ yarn run build ``` -------------------------------- ### Nostr Signer Extension API (JavaScript) Source: https://github.com/diegogurpegui/nos2x-fox/blob/main/README.md Defines the interface provided by the nos2x-fox extension for web applications to interact with the Nostr network. It includes methods for getting the public key, signing events, retrieving relay configurations, and performing NIP-04 and NIP-44 encrypted messaging. ```javascript async window.nostr.getPublicKey(): string // returns your public key as hex async window.nostr.signEvent(event): Event // returns the full event object signed async window.nostr.getRelays(): { [url: string]: RelayPolicy } // returns a map of relays async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext+iv as specified in nip04 async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext+iv as specified in nip04 async window.nostr.nip44.encrypt(pubkey, plaintext): string // takes pubkey, plaintext, returns ciphertext as specified in nip-44 async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes pubkey, ciphertext, returns plaintext as specified in nip-44 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.