mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
24 lines
644 B
Dart
24 lines
644 B
Dart
import 'dart:typed_data';
|
|
|
|
import 'package:breez_sdk/bridge_generated.dart';
|
|
|
|
NodeConfig productionNodeConfig() {
|
|
// ANCHOR: moving-to-production
|
|
// Read your Greenlight credentials from secure storage
|
|
Uint8List deviceKey = Uint8List(0);
|
|
Uint8List deviceCert = Uint8List(0);
|
|
GreenlightCredentials greenlightCredentials = GreenlightCredentials(
|
|
deviceKey: deviceKey,
|
|
deviceCert: deviceCert,
|
|
);
|
|
|
|
NodeConfig nodeConfig = NodeConfig.greenlight(
|
|
config: GreenlightNodeConfig(
|
|
partnerCredentials: greenlightCredentials,
|
|
inviteCode: null,
|
|
),
|
|
);
|
|
// ANCHOR_END: moving-to-production
|
|
return nodeConfig;
|
|
}
|