Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Commits
3ca56bb0
Commit
3ca56bb0
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Remove DHKey Encodable conformance
parent
2e04409f
No related branches found
No related tags found
2 merge requests
!102
Release 1.0.0
,
!49
Update Bindings
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Sources/XXClient/Models/DHKey.swift
+1
-5
1 addition, 5 deletions
Sources/XXClient/Models/DHKey.swift
Tests/XXClientTests/Models/DHKeyTests.swift
+0
-5
0 additions, 5 deletions
Tests/XXClientTests/Models/DHKeyTests.swift
with
1 addition
and
10 deletions
Sources/XXClient/Models/DHKey.swift
+
1
−
5
View file @
3ca56bb0
...
@@ -10,7 +10,7 @@ public struct DHKey: Equatable {
...
@@ -10,7 +10,7 @@ public struct DHKey: Equatable {
public
var
fingerprint
:
UInt64
public
var
fingerprint
:
UInt64
}
}
extension
DHKey
:
C
odable
{
extension
DHKey
:
Dec
odable
{
enum
CodingKeys
:
String
,
CodingKey
{
enum
CodingKeys
:
String
,
CodingKey
{
case
value
=
"Value"
case
value
=
"Value"
case
fingerprint
=
"Fingerprint"
case
fingerprint
=
"Fingerprint"
...
@@ -20,8 +20,4 @@ extension DHKey: Codable {
...
@@ -20,8 +20,4 @@ extension DHKey: Codable {
let
data
=
convertJsonNumberToString
(
in
:
data
,
at
:
"Value"
)
let
data
=
convertJsonNumberToString
(
in
:
data
,
at
:
"Value"
)
return
try
JSONDecoder
()
.
decode
(
Self
.
self
,
from
:
data
)
return
try
JSONDecoder
()
.
decode
(
Self
.
self
,
from
:
data
)
}
}
public
func
encode
()
throws
->
Data
{
try
JSONEncoder
()
.
encode
(
self
)
}
}
}
This diff is collapsed.
Click to expand it.
Tests/XXClientTests/Models/DHKeyTests.swift
+
0
−
5
View file @
3ca56bb0
...
@@ -19,10 +19,5 @@ final class DHKeyTests: XCTestCase {
...
@@ -19,10 +19,5 @@ final class DHKeyTests: XCTestCase {
value
:
value
,
value
:
value
,
fingerprint
:
fingerprint
fingerprint
:
fingerprint
))
))
let
encodedModel
=
try
model
.
encode
()
let
decodedModel
=
try
DHKey
.
decode
(
encodedModel
)
XCTAssertNoDifference
(
decodedModel
,
model
)
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment