mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Add production Greenlight credentials example
This commit is contained in:
25
snippets/go/production.go
Normal file
25
snippets/go/production.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user