You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,46 +16,45 @@ Just like that K1 vendors these key pairs:
16
16
17
17
Just like you can convert between e.g. `Curve25519.KeyAgreement.PrivateKey` and `Curve25519.Signing.PrivateKey` back and forth using any of the initializers and serializer, you can convert between all PrivateKeys and all PublicKeys of all features in K1.
18
18
19
-
All keys conform to `K1KeyExportable` protocol below to serialize the Private/PubliKey:
19
+
All keys can be serialized using these computed properties:
20
20
21
21
```swift
22
-
publicprotocolK1KeyExportable{
22
+
{
23
23
var rawRepresentation: Data { get }
24
-
var x963Representation: Data { get }
25
24
var derRepresentation: Data { get }
26
25
var pemRepresentation: String { get }
26
+
var x963Representation: Data { get }
27
27
}
28
28
```
29
29
30
-
All keys conform to `K1KeyImportable` protocol below to deserialize to Private/PubliKey:
30
+
All keys can be deserialize using these initializer:
31
31
32
32
```swift
33
-
publicprotocolK1KeyImportable{
33
+
{
34
34
init(rawRepresentation: some ContiguousBytes) throws
35
-
init(x963Representation: some ContiguousBytes) throws
0 commit comments