mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
22 lines
650 B
Dart
22 lines
650 B
Dart
import 'dart:typed_data';
|
|
|
|
import 'package:breez_sdk/breez_sdk.dart';
|
|
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, deviceCert);
|
|
|
|
NodeConfig nodeConfig = NodeConfig.greenlight(
|
|
config: GreenlightNodeConfig(
|
|
partnerCredentials: greenlightCredentials,
|
|
inviteCode: null,
|
|
),
|
|
);
|
|
// ANCHOR_END: moving-to-production
|
|
return nodeConfig;
|
|
}
|