Interface IKeystoreAsymmetricKeyBuilder2
interface IKeystoreAsymmetricKeyBuilder2
Extends IKeystoreAsymmetricKeyBuilder
Enhanced keystore asymmetric key builder with raw key import support.
This interface extends the original IKeystoreAsymmetricKeyBuilder with additional
functionality for importing public keys from raw byte arrays.
Methods
buildPublicFromRaw()
Import a public key from raw bytes and store it in the keystore.IKeystoreKey*buildPublicFromRaw(u8[]raw)
Parameters
raw
u8[] — Required
The raw key bytes.
Returns
IKeystoreKey*
The imported keystore key.
Throws
KeyFormatError— if the raw key format is invalid.DuplicateKeyError— if a key with the same name already exists.

