lupine_sdk 2.0.1 copy "lupine_sdk: ^2.0.1" to clipboard
lupine_sdk: ^2.0.1 copied to clipboard

Secure, encrypted cloud drive service built on Nostr protocol with real-time sync.

Secure, encrypted cloud drive service built on Nostr protocol with real-time sync.

Examples #

// Initialize NDK
final ndk = Ndk.defaultConfig();

// Login with private key
final privkey = Nip19.nsecToHex(
"nsec1ulevffshaykkq46yyedc5c78svemvk2qcc48azpmdlszc3rf233sz9vd53",
);
final keyPair = KeyPair.fromPrivateKey(privateKey: privkey);
ndk.accounts.loginPrivateKey(pubkey: keyPair.publicKey, privkey: privkey);

// Create an in-memory database for the example
final factory = newDatabaseFactoryMemory();
final db = await factory.openDatabase('example_drive.db');

// Initialize DriveService with NDK and database
final drive = DriveService(ndk: ndk, db: db);

// Create a folder
await drive.createFolder("/home/moi");
print('Folder created successfully');

TODO #

  • ❌ Sync

My Nostr for contact and donation #

https://njump.me/npub1kg4sdvz3l4fr99n2jdz2vdxe2mpacva87hkdetv76ywacsfq5leqquw5te

0
likes
140
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Secure, encrypted cloud drive service built on Nostr protocol with real-time sync.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bech32, convert, crypto, cryptography, ndk, nip01, nip19, nip49, path, pointycastle, sembast

More

Packages that depend on lupine_sdk