diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3d35a94..83d9ac47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest outputs: sdk-ref: ${{ inputs.sdk-ref || 'd658f85c7c349bd7ed96c05c3d008b7b75e6273a' }} - package-version: '0.4.2-rc1' + package-version: '0.4.3-rc1' steps: - run: echo "set pre-setup output variables" diff --git a/snippets/csharp/Production.cs b/snippets/csharp/Production.cs index 853c6ef7..ab9b2c7e 100644 --- a/snippets/csharp/Production.cs +++ b/snippets/csharp/Production.cs @@ -6,9 +6,9 @@ public NodeConfig ProductionNodeConfig() { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - var deviceKey = new List(); - var deviceCert = new List(); - var greenlightCredentials = new GreenlightCredentials(deviceKey, deviceCert); + var developerKey = new List(); + var developerCert = new List(); + var greenlightCredentials = new GreenlightCredentials(developerKey, developerCert); var nodeConfig = new NodeConfig.Greenlight( new GreenlightNodeConfig(greenlightCredentials, null) diff --git a/snippets/dart_snippets/lib/production.dart b/snippets/dart_snippets/lib/production.dart index 9e716ccc..52f16dd3 100644 --- a/snippets/dart_snippets/lib/production.dart +++ b/snippets/dart_snippets/lib/production.dart @@ -6,11 +6,11 @@ NodeConfig productionNodeConfig() { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - Uint8List deviceKey = Uint8List(0); - Uint8List deviceCert = Uint8List(0); + Uint8List developerKey = Uint8List(0); + Uint8List developerCert = Uint8List(0); GreenlightCredentials greenlightCredentials = GreenlightCredentials( - deviceKey: deviceKey, - deviceCert: deviceCert, + developerKey: developerKey, + developerCert: developerCert, ); NodeConfig nodeConfig = NodeConfig.greenlight( diff --git a/snippets/dart_snippets/pubspec.lock b/snippets/dart_snippets/pubspec.lock index 5866df70..2d073ef0 100644 --- a/snippets/dart_snippets/pubspec.lock +++ b/snippets/dart_snippets/pubspec.lock @@ -55,7 +55,7 @@ packages: path: "packages/breez-sdk-flutter" relative: true source: path - version: "0.4.2-rc1" + version: "0.4.3-rc1" build: dependency: transitive description: diff --git a/snippets/go/go.mod b/snippets/go/go.mod index ac903131..fed32b8a 100644 --- a/snippets/go/go.mod +++ b/snippets/go/go.mod @@ -2,6 +2,6 @@ module main go 1.19 -require github.com/breez/breez-sdk-go v0.4.0-rc5 +require github.com/breez/breez-sdk-go v0.4.3-rc1 replace github.com/breez/breez-sdk-go => ./packages/breez-sdk-go diff --git a/snippets/go/production.go b/snippets/go/production.go index f73a7c95..f52020ce 100644 --- a/snippets/go/production.go +++ b/snippets/go/production.go @@ -8,11 +8,11 @@ func ProductionNodeConfig() breez_sdk.NodeConfig { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - deviceKey := []uint8{} - deviceCert := []uint8{} + developerKey := []uint8{} + developerCert := []uint8{} greenlightCredentials := breez_sdk.GreenlightCredentials{ - DeviceKey: deviceKey, - DeviceCert: deviceCert, + developerKey: developerKey, + developerCert: developerCert, } nodeConfig := breez_sdk.NodeConfigGreenlight{ diff --git a/snippets/kotlin_mpp_lib/shared/build.gradle.kts b/snippets/kotlin_mpp_lib/shared/build.gradle.kts index 575a81f2..f01f1a19 100644 --- a/snippets/kotlin_mpp_lib/shared/build.gradle.kts +++ b/snippets/kotlin_mpp_lib/shared/build.gradle.kts @@ -34,7 +34,7 @@ kotlin { } val commonMain by getting { dependencies { - implementation("technology.breez:breez-sdk-kmp:0.4.2-rc1") + implementation("technology.breez:breez-sdk-kmp:0.4.3-rc1") } } } diff --git a/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Production.kt b/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Production.kt index 761df2dd..2c8920bd 100644 --- a/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Production.kt +++ b/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Production.kt @@ -6,9 +6,9 @@ class Production { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - val deviceKey = emptyList() - val deviceCert = emptyList() - val greenlightCredentials = GreenlightCredentials(deviceKey, deviceCert) + val developerKey = emptyList() + val developerCert = emptyList() + val greenlightCredentials = GreenlightCredentials(developerKey, developerCert) val nodeConfig = NodeConfig.Greenlight(GreenlightNodeConfig(greenlightCredentials, null)) // ANCHOR_END: moving-to-production diff --git a/snippets/python/src/production.py b/snippets/python/src/production.py index c796eb32..4c21f7bf 100644 --- a/snippets/python/src/production.py +++ b/snippets/python/src/production.py @@ -4,9 +4,9 @@ def production_node_config(): # ANCHOR: moving-to-production # Read in your Greenlight credentials from the file # system, environment variable or build config - deviceKey = [] - deviceCert = [] - greenlightCredentials = breez_sdk.GreenlightCredentials(deviceKey, deviceCert) + developerKey = [] + developerCert = [] + greenlightCredentials = breez_sdk.GreenlightCredentials(developerKey, developerCert) node_config = breez_sdk.NodeConfig.GREENLIGHT( breez_sdk.GreenlightNodeConfig(greenlightCredentials, None)) diff --git a/snippets/react-native/production.ts b/snippets/react-native/production.ts index 92d04f79..126438c7 100644 --- a/snippets/react-native/production.ts +++ b/snippets/react-native/production.ts @@ -8,11 +8,11 @@ const productionNodeConfig = (): NodeConfig => { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - const deviceKey: number[] = [] - const deviceCert: number[] = [] + const developerKey: number[] = [] + const developerCert: number[] = [] const greenlightCredentials: GreenlightCredentials = { - deviceKey, - deviceCert + developerKey, + developerCert } const nodeConfig: NodeConfig = { diff --git a/snippets/rust/Cargo.lock b/snippets/rust/Cargo.lock index 5ce627ec..988e3432 100644 --- a/snippets/rust/Cargo.lock +++ b/snippets/rust/Cargo.lock @@ -461,8 +461,8 @@ dependencies = [ [[package]] name = "breez-sdk-core" -version = "0.4.1" -source = "git+https://github.com/breez/breez-sdk?rev=76cd730e298d330ad4922fccc5296ab020201f36#76cd730e298d330ad4922fccc5296ab020201f36" +version = "0.4.3-rc1" +source = "git+https://github.com/breez/breez-sdk?rev=a9d208a0b8aa074cd6ab0bc490ecd074c704197a#a9d208a0b8aa074cd6ab0bc490ecd074c704197a" dependencies = [ "aes", "anyhow", diff --git a/snippets/rust/Cargo.toml b/snippets/rust/Cargo.toml index 6b63bf1b..3a7353f8 100644 --- a/snippets/rust/Cargo.toml +++ b/snippets/rust/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" [dependencies] anyhow = "1" bip39 = { version = "2", features = ["rand"] } -breez-sdk-core = { git = "https://github.com/breez/breez-sdk", rev = "76cd730e298d330ad4922fccc5296ab020201f36" } +breez-sdk-core = { git = "https://github.com/breez/breez-sdk", rev = "a9d208a0b8aa074cd6ab0bc490ecd074c704197a" } log = "0.4" tokio = "1.29" diff --git a/snippets/rust/src/production.rs b/snippets/rust/src/production.rs index 3a09329a..64f37540 100644 --- a/snippets/rust/src/production.rs +++ b/snippets/rust/src/production.rs @@ -5,11 +5,11 @@ fn production_node_config() -> Result { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - let device_key: Vec = vec![]; - let device_cert: Vec = vec![]; + let developer_key: Vec = vec![]; + let developer_cert: Vec = vec![]; let greenlight_credentials = GreenlightCredentials { - device_key, - device_cert, + developer_key, + developer_cert, }; let node_config = NodeConfig::Greenlight { diff --git a/snippets/swift/BreezSDKExamples/Package.resolved b/snippets/swift/BreezSDKExamples/Package.resolved index 6ffcaaf8..4bb11ffb 100644 --- a/snippets/swift/BreezSDKExamples/Package.resolved +++ b/snippets/swift/BreezSDKExamples/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/breez/breez-sdk-swift", "state" : { - "revision" : "5f233fc7bd38395461849a1fb5d999f0667039e8", - "version" : "0.4.2-rc1" + "revision" : "f77009b19955f5d5a819aa2decf0e54042ed687f", + "version" : "0.4.3-rc1" } }, { diff --git a/snippets/swift/BreezSDKExamples/Package.swift b/snippets/swift/BreezSDKExamples/Package.swift index 551106bd..77dfba0d 100644 --- a/snippets/swift/BreezSDKExamples/Package.swift +++ b/snippets/swift/BreezSDKExamples/Package.swift @@ -8,7 +8,7 @@ let package = Package( platforms: [.macOS(.v13)], dependencies: [ .package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.3"), - .package(url: "https://github.com/breez/breez-sdk-swift", from: "0.4.2-rc1") + .package(url: "https://github.com/breez/breez-sdk-swift", from: "0.4.3-rc1") ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. diff --git a/snippets/swift/BreezSDKExamples/Sources/Production.swift b/snippets/swift/BreezSDKExamples/Sources/Production.swift index 8e943a9a..07e6d6c2 100644 --- a/snippets/swift/BreezSDKExamples/Sources/Production.swift +++ b/snippets/swift/BreezSDKExamples/Sources/Production.swift @@ -11,9 +11,9 @@ func productionNodeConfig() -> NodeConfig { // ANCHOR: moving-to-production // Read in your Greenlight credentials from the file // system, environment variable or build config - let deviceKey = [UInt8]() - let deviceCert = [UInt8]() - let greenlightCredentials = GreenlightCredentials(deviceKey: deviceKey, deviceCert: deviceCert) + let developerKey = [UInt8]() + let developerCert = [UInt8]() + let greenlightCredentials = GreenlightCredentials(developerKey: developerKey, developerCert: developerCert) let nodeConfig = NodeConfig.greenlight( config: GreenlightNodeConfig(partnerCredentials: greenlightCredentials, inviteCode: nil)) diff --git a/src/guide/install.md b/src/guide/install.md index 962deacf..2d7534fb 100644 --- a/src/guide/install.md +++ b/src/guide/install.md @@ -93,7 +93,7 @@ Check https://github.com/breez/breez-sdk/releases for the latest version. ```toml [dependencies] -breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.4.2-rc1" } +breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.4.3-rc1" } ``` ## Flutter/Dart diff --git a/src/guide/production.md b/src/guide/production.md index 6d258b3f..b332256f 100644 --- a/src/guide/production.md +++ b/src/guide/production.md @@ -72,7 +72,7 @@ To obtain a certificate for a production environment, please register [here](htt ## Applying certificates -The certificates received from Blockstream should be contained with a zip file. Within the zip file should be a `.crt` and a `.pem` file, these are the certificate and private key files. To use these files with the Breez SDK each file needs to be read as binary/byte data, inserting the `.crt` data as the device cert and the `.pem` data as the device key. +The certificates received from Blockstream should be contained with a zip file. Within the zip file should be a `.crt` and a `.pem` file, these are the certificate and private key files. To use these files with the Breez SDK each file needs to be read as binary/byte data, inserting the `.crt` data as the developer cert and the `.pem` data as the developer key.

Developer note

Leave the file contents as is, manipulating the file contents will result in transport errors.