Matter::Crypto::Key
Inherits Reference < Object
Represents a cryptographic key Models keys similar to JSON Web Key (JWK) format for compatibility
Constructors
new(type : KeyType = KeyType::EC, curve : CurveType | Nil = CurveType::P256, extractable : Bool = true)
SourceClass methods
extract_public_key_from_der(der : Bytes) : Bytes
Extract 65-byte uncompressed public key from DER format
Instance methods
algorithm
Sourcealgorithm=(algorithm : String | Nil)
Sourcecurve
Sourcecurve=(curve : CurveType | Nil)
Sourceextractable=(extractable : Bool)
Sourceextractable?
Sourcekey_pair
Sourcekey_pair_bits=(pair : BinaryKeyPair)
Sourceoperations
Sourceoperations=(operations : Array(String) | Nil)
Sourceprivate_bits=(value : Bytes | Nil)
Sourceprivate_key
Sourcepublic_bits=(value : Bytes)
Sourcetype
Sourcetype=(type : KeyType)
Sourcex_bits=(value : Bytes | Nil)
Sourcey_bits=(value : Bytes | Nil)
Source