You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
loc-chain-app/loc_chain_app/lib/util/transaction_manager.dart

26 lines
703 B

import 'package:fast_rsa/model/bridge.pb.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:sqflite/sqflite.dart';
import 'package:fast_rsa/rsa.dart';
import 'dart:io';
class Transaction {
Transaction({required this.otherUserID}) {
SharedPreferences.getInstance().then((s) => _id = s.getString('id') ?? '0');
}
late final String _id;
final String otherUserID;
static Hash? makeTransactionHash() {}
}
class TransactionsDBManager {
static Future<Database> get _localFile async {
return openDatabase('transactions.db');
}
static Future<List<Transaction>?> readTransactions() async {}
static Future<void> writeKeyPair(KeyPair pair) async {}
}