Initializer
init(derRepresentation:)
Creates a secp256k1 public key for key agreement from a Distinguished Encoding Rules (DER) encoded representation.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init<Bytes>(derRepresentation: Bytes) throws where Bytes : RandomAccessCollection, Bytes.Element == UInt8
Parameters
-
derRepresentation
-
A DER-encoded representation of the key.