@@ -10,7 +10,7 @@ actor WalletRespondService {
10
10
private let rpcHistory : RPCHistory
11
11
private let verifyContextStore : CodableStore < VerifyContext >
12
12
private let logger : ConsoleLogging
13
- private let walletErrorResponder : WalletErrorResponder
13
+ private let walletErrorResponder : Auth_WalletErrorResponder
14
14
private let pairingRegisterer : PairingRegisterer
15
15
16
16
init (
@@ -19,7 +19,7 @@ actor WalletRespondService {
19
19
kms: KeyManagementService ,
20
20
rpcHistory: RPCHistory ,
21
21
verifyContextStore: CodableStore < VerifyContext > ,
22
- walletErrorResponder: WalletErrorResponder ,
22
+ walletErrorResponder: Auth_WalletErrorResponder ,
23
23
pairingRegisterer: PairingRegisterer
24
24
) {
25
25
self . networkingInteractor = networkingInteractor
@@ -57,17 +57,17 @@ actor WalletRespondService {
57
57
verifyContextStore. delete ( forKey: requestId. string)
58
58
}
59
59
60
- private func getAuthRequestParams( requestId: RPCID ) throws -> AuthRequestParams {
60
+ private func getAuthRequestParams( requestId: RPCID ) throws -> Auth_RequestParams {
61
61
guard let request = rpcHistory. get ( recordId: requestId) ? . request
62
62
else { throw Errors . recordForIdNotFound }
63
63
64
- guard let authRequestParams = try request. params? . get ( AuthRequestParams . self)
64
+ guard let authRequestParams = try request. params? . get ( Auth_RequestParams . self)
65
65
else { throw Errors . malformedAuthRequestParams }
66
66
67
67
return authRequestParams
68
68
}
69
69
70
- private func generateAgreementKeys( requestParams: AuthRequestParams ) throws -> ( topic: String , keys: AgreementKeys ) {
70
+ private func generateAgreementKeys( requestParams: Auth_RequestParams ) throws -> ( topic: String , keys: AgreementKeys ) {
71
71
let peerPubKey = try AgreementPublicKey ( hex: requestParams. requester. publicKey)
72
72
let topic = peerPubKey. rawRepresentation. sha256 ( ) . toHexString ( )
73
73
let selfPubKey = try kms. createX25519KeyPair ( )
0 commit comments