Skip to main content

import_private_key

Function import_private_key 

Source
pub fn import_private_key(bytes: SecureVec) -> Result<ContactKeyPair, Error>
Expand description

Imports a contact private key from PEM, JWK, JWKS-compatible JWK, or hex.

The input buffer is normalized in place and remains secret memory for the duration of parsing.