ssi.bitcoin

The browser.ssi subset for Bitcoin protocol. Requires ssi.bitcoin along with ssi to set permissions.

Required Permissions

['ssi', 'ssi.bitcoin']

Types

Preference

The preference values set by the user in about:selfsovereignindividual.

SharedSecret

Secrets encrypted and shared by Nostr NIP-44.

Functions

getPrefs

Get the user’s preference values. Since this is obtained passively and is not something that the user explicitly takes action on, ssi.askConsent is not called. The user controls whether or not to disclose it in the settings. Here, only values that are based on such assumptions would be returned.

generate

Generates Bitcoin key in the specified order. During the execution process, an internal authorization check is performed similar to browser.ssi.askConsent.

shareWith

Request the secret you want the user to share, and get back the encrypted secret by Nostr NIP-44. During the execution process, an internal authorization check is performed similar to browser.ssi.askConsent.

Events

onPrimaryChanged

Fires when the primary key is changed.

onPrefEnabledChanged

Fires when the preference value of selfsovereignindividual.bitcoin.enabled is changed.

Note

This documentation is derived from ssi.bitcoin.json in gecko-dev-for-ssi.