We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112b72c commit 6e45b3eCopy full SHA for 6e45b3e
Sources/SRP/keys.swift
@@ -22,9 +22,19 @@ public struct SRPKey {
22
23
extension SRPKey: Equatable { }
24
25
-/// contains a private and a public key
+/// Contains a private and a public key
26
public struct SRPKeyPair {
27
public let `public`: SRPKey
28
public let `private`: SRPKey
29
+
30
31
+ /// Initialise a SRPKeyPair object
32
+ /// - Parameters:
33
+ /// - public: The public key of the key pair
34
+ /// - private: The private key of the key pair
35
+ public init(`public`: SRPKey, `private`: SRPKey) {
36
+ self.private = `private`
37
+ self.public = `public`
38
+ }
39
}
40
0 commit comments