nostr_bunker 1.0.0 copy "nostr_bunker: ^1.0.0" to clipboard
nostr_bunker: ^1.0.0 copied to clipboard

With this package your app can act as a bunker and will be able to sign events from others Nostr apps.

With this package your app can act as a bunker and will be able to sign events from others Nostr apps.

Usage #

final bunker = Bunker();
bunker.addPrivateKey("private_key");
bunker.start();

// connect an app with bunker://
final bunkerUrl = bunker.getBunkerUrl(signerPubkey: "public_key_to_connect");

// connect an app with nostrconnect://
final nostrConnect = NostrConnectUrl.fromUrl("nostrconnect://");
nostrConnect.name = "new_name"; // rename the app
nostrConnect.permissions.first.isAllowed = false; // remove a permission
bunker.connectApp(
    signerPubkey: "public_key_to_connect",
    nostrConnect: nostrConnect,
);

Additional information #

This package use NDK internally.

final yourGlobalNdk = Ndk.defaultConfig();
final bunker = Bunker(ndk: yourGlobalNdk);
1
likes
0
points
246
downloads

Publisher

unverified uploader

Weekly Downloads

With this package your app can act as a bunker and will be able to sign events from others Nostr apps.

Repository

License

unknown (license)

Dependencies

ndk

More

Packages that depend on nostr_bunker