Interface IAsymmetricKeyBuilder2
interface IAsymmetricKeyBuilder2
Extends IAsymmetricKeyBuilder
Enhanced asymmetric key builder with support for raw key import.
This interface extends the original IAsymmetricKeyBuilder with additional
functionality for importing public keys from raw byte arrays, particularly
useful for EC keys where raw format is more compact than DER.
Methods
buildPublicFromRaw()
Import a public key from raw bytes.IPublicKey*buildPublicFromRaw(u8[]raw)
Parameters
raw
u8[] — Required
The raw key bytes containing the unencoded asymmetric key material.
This parameter expects raw binary key data, not wrapped in any
encoding format.
DER-encoded keys are NOT supported and must be decoded before use.
Returns
IPublicKey*
The imported public key.
Throws
KeyFormatError— if the raw key format is invalid.

