diff --git a/Sources/SwiftNoise/Structs.swift b/Sources/SwiftNoise/Structs.swift index 1f8f208..fe209c8 100644 --- a/Sources/SwiftNoise/Structs.swift +++ b/Sources/SwiftNoise/Structs.swift @@ -6,6 +6,11 @@ public typealias SecretKey = Data public struct KeyPair { public let publicKey: PublicKey public let secretKey: SecretKey + + public init(publicKey: PublicKey, secretKey: SecretKey) { + self.publicKey = publicKey + self.secretKey = secretKey + } } public typealias Nonce = UInt64