DP-3T/dp3t-sdk-ios

Specify PublicKey Format

ubamrein opened this issue · 0 comments

According to the JWTVerifier source code, only a
[...] UTF8 encoded PEM public key, with a "BEGIN PUBLIC KEY" header is supported. This has lead to confusion (SwissCovid/swisscovid-app-ios#352) since Android allows the use of a x509-Certificate directly.

Either iOS abstracts the public key in a type alias as well, and provides the corresponding constructors, or specifies the format needed here

public init(publicKey: Data, jwtTokenHeaderKey: String) {

Further, the documentation needs to be updated.