Skip to content

Commit

Permalink
Merge pull request #131 from velocitycareerlabs/VL-8412-sendable-fixes
Browse files Browse the repository at this point in the history
sendable fixes
  • Loading branch information
michaelavoyan authored Oct 6, 2024
2 parents ce74b25 + 27a587f commit f3d221c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions VCL/VCL/api/keys/VCLKeyService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public protocol VCLKeyService: Sendable {
)
func generateSecret(
signatureAlgorithm: VCLSignatureAlgorithm,
completionBlock: @escaping @Sendable (VCLResult<VCCrypto.VCCryptoSecret>) -> Void
completionBlock: @escaping @Sendable (VCLResult<any VCCrypto.VCCryptoSecret>) -> Void
)
func retrieveSecretReference(
keyId: String,
completionBlock: @escaping @Sendable (VCLResult<VCCrypto.VCCryptoSecret>) -> Void
completionBlock: @escaping @Sendable (VCLResult<any VCCrypto.VCCryptoSecret>) -> Void
)
func retrievePublicJwk(
secret: VCCrypto.VCCryptoSecret,
Expand Down
3 changes: 2 additions & 1 deletion VCL/VCL/impl/keys/VCLKeyServiceLocalImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ final class VCLKeyServiceLocalImpl: VCLKeyService {
}

func generateSecret(
completionBlock: @escaping @Sendable (VCLResult<VCCryptoSecret>) -> Void
signatureAlgorithm: VCLSignatureAlgorithm = VCLSignatureAlgorithm.SECP256k1, // ignored
completionBlock: @escaping @Sendable (VCLResult<VCCrypto.VCCryptoSecret>) -> Void
) {
do {
completionBlock(.success(try keyManagementOperations.generateKey()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import VCToken
import VCCrypto
@testable import VCL

class VCLKeyServiceMock: VCLKeyService {
final class VCLKeyServiceMock: VCLKeyService {
func generateDidJwk(
didJwkDescriptor: VCLDidJwkDescriptor,
completionBlock: @escaping @Sendable (VCLResult<VCLDidJwk>) -> Void
Expand Down

0 comments on commit f3d221c

Please sign in to comment.