What changed, and why it matters
This commit updates the Epic Cash wallet integration so that opening a wallet now requires an extra configuration value (epicboxConfig) and returns a wrapped wallet object instead of a plain string. It appears to be a routine API/example update with no obvious security relevance.
No security action required. Treat as a normal API compatibility update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies the LibEpicCashInterface abstract class and its generated implementation template. The openWallet method signature changes from returning Future
Changed components
lib/wl_gen/interfaces/libepiccash_interface.darttool/wl_templates/EPIC_libepiccash_interface_impl.template.dartInspect captured patch +19 / −5
diff --git a/lib/wl_gen/interfaces/libepiccash_interface.dart b/lib/wl_gen/interfaces/libepiccash_interface.dart
index c58a922..d1999dc 100644
--- a/lib/wl_gen/interfaces/libepiccash_interface.dart
+++ b/lib/wl_gen/interfaces/libepiccash_interface.dart
@@ -1,5 +1,7 @@
import 'dart:math';
+import '../../utilities/dynamic_object.dart';
+
export '../generated/libepiccash_interface_impl.dart';
abstract class LibEpicCashInterface {
@@ -16,7 +18,11 @@ abstract class LibEpicCashInterface {
required String name,
});
- Future<String> openWallet({required String config, required String password});
+ Future<DynamicObject> openWallet({
+ required String config,
+ required String password,
+ required String epicboxConfig,
+ });
Future<void> recoverWallet({
required String config,
diff --git a/tool/wl_templates/EPIC_libepiccash_interface_impl.template.dart b/tool/wl_templates/EPIC_libepiccash_interface_impl.template.dart
index 18cf45a..e14d5db 100644
--- a/tool/wl_templates/EPIC_libepiccash_interface_impl.template.dart
+++ b/tool/wl_templates/EPIC_libepiccash_interface_impl.template.dart
@@ -2,8 +2,9 @@
import 'package:flutter_libepiccash/git_versions.dart' as epic_versions;
import 'package:flutter_libepiccash/lib.dart';
import 'package:flutter_libepiccash/models/transaction.dart';
-
//END_ON
+import 'package:stackwallet/utilities/dynamic_object.dart';
+
import '../interfaces/libepiccash_interface.dart';
LibEpicCashInterface get libEpic => _getLib();
@@ -197,11 +198,18 @@ final class _LibEpicCashInterfaceImpl extends LibEpicCashInterface {
}
@override
- Future<String> openWallet({
+ Future<DynamicObject> openWallet({
required String config,
required String password,
- }) {
- return LibEpiccash.openWallet(config: config, password: password);
+ required String epicboxConfig,
+ }) async {
+ final wallet = await EpicWallet.load(
+ config: config,
+ password: password,
+ epicboxConfig: epicboxConfig,
+ );
+
+ return DynamicObject(wallet);
}
@override
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.