PACEParametersDecoder
internal final class PACEParametersDecoder
The PACEParametersDecoder
class is responsible for decoding
StandardizedDomainParameters
used during PACE based on their identifiers.
-
Declaration
Swift
internal typealias ParametersIdentifier = Int
-
Decodes PACE parameters based on their identifier and returns the corresponding
StandardizedDomainParameters
.Declaration
Swift
internal static func decode(parametersId: ParametersIdentifier) -> StandardizedDomainParameters?
Parameters
parametersId
The identifier of PACE parameters.
Return Value
The corresponding
StandardizedDomainParameters
ornil
if not found. -
Get the PACE parameters identifier from the corresponding
StandardizedDomainParameters
.Declaration
Swift
internal static func getParametersId(from parameters: StandardizedDomainParameters) -> ParametersIdentifier?
Parameters
parameters
Return Value
The corresponding PACE parameters identifier or
nil
if not found.