pub trait SecretKeyExt: Sized {
// Required methods
fn from_seed(seed: Bytes) -> Result<Self>;
fn from_bytes(bytes: Bytes32) -> Result<Self>;
fn to_bytes(&self) -> Result<Bytes32>;
fn public_key(&self) -> Result<PublicKey>;
fn sign(&self, message: Bytes) -> Result<Signature>;
fn derive_unhardened(&self, index: u32) -> Result<Self>;
fn derive_hardened(&self, index: u32) -> Result<Self>;
fn derive_unhardened_path(&self, path: Vec<u32>) -> Result<Self>;
fn derive_hardened_path(&self, path: Vec<u32>) -> Result<Self>;
fn derive_synthetic(&self) -> Result<Self>;
fn derive_synthetic_hidden(
&self,
hidden_puzzle_hash: Bytes32,
) -> Result<Self>;
}Required Methods§
fn from_seed(seed: Bytes) -> Result<Self>
fn from_bytes(bytes: Bytes32) -> Result<Self>
fn to_bytes(&self) -> Result<Bytes32>
fn public_key(&self) -> Result<PublicKey>
fn sign(&self, message: Bytes) -> Result<Signature>
fn derive_unhardened(&self, index: u32) -> Result<Self>
fn derive_hardened(&self, index: u32) -> Result<Self>
fn derive_unhardened_path(&self, path: Vec<u32>) -> Result<Self>
fn derive_hardened_path(&self, path: Vec<u32>) -> Result<Self>
fn derive_synthetic(&self) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.