Optional
_categoryCategoria del plugin
Private
bitcoinProtected
coreRiferimento all'istanza di ShogunCore
Descrizione opzionale del plugin
Nome univoco del plugin - deve essere implementato dalle sottoclassi
Private
signerVersione del plugin - deve essere implementata dalle sottoclassi
Private
assertProtected
assertVerifica che il plugin sia stato inizializzato prima di usare il core
L'istanza di ShogunCore non null
Private
assertPrivate
Assicura che il signer sia inizializzato
Release resources and clean up event listeners
Clear signature cache for better user recovery
Optional
address: stringOptional specific address to clear, or clear all if not provided
Connect to a Bitcoin wallet
Type of wallet to connect to
Promise with the connection result
Creates an authenticator function for Nostr signing
Creates a Gun user from Nostr signing credential This ensures the SAME user is created as with normal approach
Creates a new Nostr signing credential CONSISTENT with normal Nostr approach
Distrugge il plugin e libera le risorse
Emits an event with arguments
Optional
data: unknownGenerate credentials using a Bitcoin wallet
Bitcoin address
Promise with the generated credentials
Generate a password based on a signature
Signature
Promise with the generated password
Get the Gun user public key for a signing credential
Get the password (for consistency checking)
Get signing credential by address
Inizializza il plugin con un'istanza di ShogunCore
Istanza di ShogunCore
Check if Alby extension is available Note: Alby is deprecated in favor of Nostr
Check if any Bitcoin wallet is available in the browser
true if a wallet is available, false otherwise
Check if Nostr extension is available
List all signing credentials
Login with Bitcoin wallet
Bitcoin address
Authentication result
Convenience method that matches the interface pattern
Removes an event listener
Registers an event listener
Registers a one-time event listener
Removes all listeners for an event or all events
Optional
event: EventTypeRemove a signing credential
Complete oneshot workflow that creates the SAME Gun user as normal approach This is the recommended method for oneshot signing with full consistency
Register a new user with Bitcoin wallet
Bitcoin address
Registration result
Convenience method that matches the interface pattern
Signs data with derived keys after Nostr verification
Optional
extra: string[]Verify consistency between oneshot and normal approaches This ensures both approaches create the same Gun user
Optional
expectedUserPub: stringVerify a signature
Signed message
Signature to verify
The Bitcoin address that supposedly created the signature
Promise that resolves to true if the signature is valid
Plugin for managing Bitcoin wallet functionality in ShogunCore Supports Alby, Nostr extensions, or direct key management