mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
26 lines
607 B
Go
26 lines
607 B
Go
package example
|
|
|
|
import (
|
|
"github.com/breez/breez-sdk-go/breez_sdk"
|
|
)
|
|
|
|
func ProductionNodeConfig() breez_sdk.NodeConfig {
|
|
// ANCHOR: moving-to-production
|
|
// Read your Greenlight credentials from secure storage
|
|
deviceKey := []uint8{}
|
|
deviceCert := []uint8{}
|
|
greenlightCredentials := breez_sdk.GreenlightCredentials{
|
|
DeviceKey: deviceKey,
|
|
DeviceCert: deviceCert,
|
|
};
|
|
|
|
nodeConfig := breez_sdk.NodeConfigGreenlight{
|
|
Config: breez_sdk.GreenlightNodeConfig{
|
|
PartnerCredentials: &greenlightCredentials,
|
|
InviteCode: nil,
|
|
},
|
|
}
|
|
// ANCHOR_END: moving-to-production
|
|
return nodeConfig
|
|
}
|