Skip to content

Commit

Permalink
use latest mobile-sdk-rs 0.2.1 release
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Tate <[email protected]>
  • Loading branch information
Ryanmtate committed Oct 23, 2024
1 parent de20299 commit 10c4b1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/MobileSdk/Credential.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ public extension JsonVc {
}
}

public extension SdJwt {
public extension Vcdm2SdJwt {
/// Access the SD-JWT decoded credential
func credentialClaims() -> [String: GenericJSON] {
do {
if let data = try decodeRevealJsonString().data(using: .utf8) {
if let data = try revealedClaimsAsJsonString().data(using: .utf8) {
do {
let json = try JSONDecoder().decode(GenericJSON.self, from: data)
if let object = json.dictValue {
Expand All @@ -128,7 +128,7 @@ public extension SdJwt {
} catch let error as NSError {
print("failed to decode SD-JWT data from UTF-8: \(error)")
}

return [:]
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/MobileSdk/CredentialPack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CredentialPack {
}

/// Add an SD-JWT to the CredentialPack.
public func addSdJwt(sdJwt: SdJwt) -> [ParsedCredential] {
public func addSdJwt(sdJwt: Vcdm2SdJwt) -> [ParsedCredential] {
credentials.append(ParsedCredential.newSdJwt(sdJwtVc: sdJwt))
return credentials
}
Expand Down Expand Up @@ -68,7 +68,7 @@ public class CredentialPack {
} else {
var type: String
do {
type = try credential.intoGenericForm().type()
type = try credential.intoGenericForm().type
} catch {
type = "unknown"
}
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ options:
packages:
SpruceIDMobileSdkRs:
url: https://github.com/spruceid/mobile-sdk-rs
revision: "d559d750dbd5945eace315a05ce05b2702ed2865"
from: 0.2.1
SwiftAlgorithms:
url: https://github.com/apple/swift-algorithms
from: 1.2.0
Expand Down

0 comments on commit 10c4b1b

Please sign in to comment.