Skip to main content

public_key_from_private

Function public_key_from_private 

Source
pub fn public_key_from_private(
    private_key_pkcs8: &[u8],
) -> Result<Vec<u8>, &'static str>
Expand description

Derives the raw Ed25519 public key that operators distribute as the verification trust anchor.

§Parameters

§Returns

Returns the successful value produced by crate::provenance::public_key_from_private or an error when the operation fails.

§Errors

Returns an error value when crate::provenance::public_key_from_private cannot complete successfully.

§Examples

ⓘ
let _result = pharos_runtime_ops::provenance::public_key_from_private(todo!());