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:
@@ -0,0 +1,16 @@
|
||||
package com.example.kotlinmpplib
|
||||
|
||||
import breez_sdk.*
|
||||
class Production {
|
||||
fun productionNodeConfig(): NodeConfig {
|
||||
// ANCHOR: moving-to-production
|
||||
// Read your Greenlight credentials from secure storage
|
||||
val deviceKey = emptyList<UByte>()
|
||||
val deviceCert = emptyList<UByte>()
|
||||
val greenlightCredentials = GreenlightCredentials(deviceKey, deviceCert)
|
||||
|
||||
val nodeConfig = NodeConfig.Greenlight(GreenlightNodeConfig(greenlightCredentials, null))
|
||||
// ANCHOR_END: moving-to-production
|
||||
return nodeConfig
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user