Initializer
init(x963Representation:)
Creates a secp256k1 ECDH public key from an ANSI X9.63 representation.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init<Bytes>(x963Representation: Bytes) throws where Bytes : ContiguousBytes
Parameters
-
x963Representation
-
33 bytes for compressed or 65 bytes for uncompressed; byte-length determines the format automatically.
Discussion
Throws
CryptoKitError.incorrectParameterSize if the length is neither 33 nor 65 bytes.