diff --git a/Sources/ElixxirDAppsSDK/E2E.swift b/Sources/ElixxirDAppsSDK/E2E.swift index d9beb4e2a109654bb60f51c5bed44044b5367c09..b2c003fc06eeeaffdd9a3ac66ec5b16701cd40e0 100644 --- a/Sources/ElixxirDAppsSDK/E2E.swift +++ b/Sources/ElixxirDAppsSDK/E2E.swift @@ -3,6 +3,7 @@ import Bindings public struct E2E { public var getId: E2EGetId public var getReceptionId: E2EGetReceptionId + public var getHistoricalDHPrivateKey: E2EGetHistoricalDHPrivateKey public var getContact: E2EGetContact public var payloadSize: E2EPayloadSize public var partitionSize: E2EPartitionSize @@ -18,6 +19,7 @@ extension E2E { E2E( getId: .live(bindingsE2E), getReceptionId: .live(bindingsE2E), + getHistoricalDHPrivateKey: .live(bindingsE2E), getContact: .live(bindingsE2E), payloadSize: .live(bindingsE2E), partitionSize: .live(bindingsE2E), @@ -32,6 +34,7 @@ extension E2E { public static let unimplemented = E2E( getId: .unimplemented, getReceptionId: .unimplemented, + getHistoricalDHPrivateKey: .unimplemented, getContact: .unimplemented, payloadSize: .unimplemented, partitionSize: .unimplemented, diff --git a/Sources/ElixxirDAppsSDK/E2EGetHistoricalDHPrivateKey.swift b/Sources/ElixxirDAppsSDK/E2EGetHistoricalDHPrivateKey.swift new file mode 100644 index 0000000000000000000000000000000000000000..619bdf05f565d2ce2068684aa28f694da1b03db4 --- /dev/null +++ b/Sources/ElixxirDAppsSDK/E2EGetHistoricalDHPrivateKey.swift @@ -0,0 +1,22 @@ +import Bindings +import XCTestDynamicOverlay + +public struct E2EGetHistoricalDHPrivateKey { + public var run: () throws -> Data + + public func callAsFunction() throws -> Data { + try run() + } +} + +extension E2EGetHistoricalDHPrivateKey { + public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetHistoricalDHPrivateKey { + E2EGetHistoricalDHPrivateKey(run: bindingsE2E.getHistoricalDHPrivkey) + } +} + +extension E2EGetHistoricalDHPrivateKey { + public static let unimplemented = E2EGetHistoricalDHPrivateKey( + run: XCTUnimplemented("\(Self.self)") + ) +}