File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Sources/Web3Core/KeystoreManager Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import Foundation
6
6
7
- public struct KdfParamsV3 : Decodable , Encodable {
7
+ public struct KdfParamsV3 : Codable {
8
8
var salt : String
9
9
var dklen : Int
10
10
var n : Int ?
@@ -24,15 +24,15 @@ public struct KdfParamsV3: Decodable, Encodable {
24
24
}
25
25
}
26
26
27
- public struct CipherParamsV3 : Decodable , Encodable {
27
+ public struct CipherParamsV3 : Codable {
28
28
var iv : String
29
29
30
30
public init ( iv: String ) {
31
31
self . iv = iv
32
32
}
33
33
}
34
34
35
- public struct CryptoParamsV3 : Decodable , Encodable {
35
+ public struct CryptoParamsV3 : Codable {
36
36
var ciphertext : String
37
37
var cipher : String
38
38
var cipherparams : CipherParamsV3
@@ -75,20 +75,6 @@ public struct KeystoreParamsBIP32: AbstractKeystoreParams {
75
75
public var version : Int
76
76
public var isHDWallet : Bool
77
77
78
- @available ( * , deprecated, message: " Please use pathAddressPairs instead " )
79
- var pathToAddress : [ String : String ] {
80
- get {
81
- return self . pathAddressPairs. reduce ( into: [ String: String] ( ) ) {
82
- $0 [ $1. path] = $1. address
83
- }
84
- }
85
- set {
86
- for pair in newValue {
87
- self . pathAddressPairs. append ( PathAddressPair ( path: pair. 0 , address: pair. 1 ) )
88
- }
89
- }
90
- }
91
-
92
78
public var pathAddressPairs : [ PathAddressPair ]
93
79
var rootPath : String ?
94
80
You can’t perform that action at this time.
0 commit comments