pub enum ProcedureDto {
SLIP10Generate {
output: LocationDto,
size_bytes: Option<usize>,
},
SLIP10Derive {
chain: Vec<u32>,
input: Slip10DeriveInputDto,
output: LocationDto,
},
BIP39Recover {
mnemonic: String,
passphrase: Option<String>,
output: LocationDto,
},
BIP39Generate {
passphrase: Option<String>,
output: LocationDto,
},
PublicKey {
ty: KeyType,
private_key: LocationDto,
},
Ed25519Sign {
private_key: LocationDto,
msg: String,
},
}Expand description
Stronghold-shaped crypto or signing operation (requires the crypto crate feature).
Variants§
SLIP10Generate
Generate a new SLIP10 master and write the extended key to output.
Fields
output: LocationDtoTarget vault location for the new master key material.
SLIP10Derive
Derive a child SLIP10 key along chain and write to output.
Fields
input: Slip10DeriveInputDtoParent seed or extended key read from input.
output: LocationDtoWhere to write derived extended key bytes.
BIP39Recover
Restore BIP39 mnemonic to SLIP10 master at output.
Fields
output: LocationDtoWhere to write extended master key bytes.
BIP39Generate
Generate entropy, build an English mnemonic, derive the BIP39 seed → SLIP10 master, and write extended key bytes to output (return value matches written bytes).
Fields
output: LocationDtoWhere to write extended master key bytes.
PublicKey
Extract public key bytes (32-byte Ed25519 pk) from a private or extended key at private_key.
Fields
private_key: LocationDtoLocation of 32-byte secret key or 65-byte extended SLIP10 key.
Ed25519Sign
Sign msg (UTF-8 interpreted as bytes) with Ed25519 private key at private_key.
Fields
private_key: LocationDtoLocation of signing key material.
Trait Implementations§
Source§impl Clone for ProcedureDto
impl Clone for ProcedureDto
Source§fn clone(&self) -> ProcedureDto
fn clone(&self) -> ProcedureDto
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more