Trait ethers::core::k256::elliptic_curve::pkcs8::FromPrivateKey [−][src]
pub trait FromPrivateKey {
fn from_pkcs8_private_key_info(
private_key_info: PrivateKeyInfo<'_>
) -> Result<Self, Error>;
fn from_pkcs8_der(bytes: &[u8]) -> Result<Self, Error> { ... }
}
Expand description
Parse a private key object from a PKCS#8 encoded document.
Required methods
fn from_pkcs8_private_key_info(
private_key_info: PrivateKeyInfo<'_>
) -> Result<Self, Error>
fn from_pkcs8_private_key_info(
private_key_info: PrivateKeyInfo<'_>
) -> Result<Self, Error>
Parse the PrivateKeyInfo
from a PKCS#8-encoded document.