Skip to content

Commit

Permalink
Add case DocDataType. deferred
Browse files Browse the repository at this point in the history
  • Loading branch information
phisakel committed Jun 20, 2024
1 parent cc0d5ea commit 8b3106f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/eudi-lib-ios-wallet-storage/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public struct Document {
return ((id, iss), (id, dpk))
case .sjwt:
fatalError("Format \(docDataType) not implemented")
case .deferred:
return nil
}
}
}
4 changes: 4 additions & 0 deletions Sources/eudi-lib-ios-wallet-storage/Enumerations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ public enum SavedKeyChainDataType{
/// ``cbor``: DeviceResponse cbor encoded
/// ``sjwt``: sd-jwt ** not yet supported **
/// ``signupResponseJson``: DeviceResponse and PrivateKey json serialized
/// ``deferred``: Deferred issuance
public enum DocDataType: String {
case cbor = "cbor"
case sjwt = "sjwt"
case signupResponseJson = "srjs"
case deferred = "defr"
}

/// Format of private key
Expand All @@ -43,3 +45,5 @@ public enum PrivateKeyType: String {
case x963EncodedP256 = "x9p2"
case secureEnclaveP256 = "sep2"
}


0 comments on commit 8b3106f

Please sign in to comment.