ssi.nostr
The browser.ssi subset for Nostr protocol. Requires ssi.nostr
along with ssi
to set permissions.
Required Permissions
['ssi', 'ssi.nostr']
Types
Preference
The preference values set by the user in about:selfsovereignindividual
Functions
getPrefs
Get preference’s values
sign
Pass message and return the signature by Nostr secret key. You should always read the public key without using cache just before sign/encrypt/decrypt, as the user may change their primary key without notifying you. During the execution process, an internal authorization check is performed similar to browser.ssi.askConsent
.
encrypt
Pass plain text and return the cipher text by Nostr secret key. You should always read the public key without using cache just before sign/encrypt/decrypt, as the user may change their primary key without notifying you. During the execution process, an internal authorization check is performed similar to browser.ssi.askConsent
.
decrypt
Pass cipher text and return the plain text by Nostr secret key. You should always read the public key without using cache just before sign/encrypt/decrypt, as the user may change their primary key without notifying you. During the execution process, an internal authorization check is performed similar to browser.ssi.askConsent
.
Events
onPrimaryChanged
Fire when primary key changed
onPrefEnabledChanged
Fire when the preference value of selfsovereignindividual.nostr.enabled
changed
This documentation is derived from ssi.nostr.json in gecko-dev-for-ssi.