#[non_exhaustive]pub enum KeyAlgo {
Secp256k1,
Ed25519,
}Expand description
Signature algorithm and matching HD path layout for Casper.
Implements kobe_primitives::DerivationStyle so CLI / generic helpers
can enumerate algorithms the same way they enumerate EVM styles.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Secp256k1
secp256k1 — Ledger / casper-cli default path m/44'/506'/0'/0/{index}.
This is Kobe’s default for Casper interop with hardware wallets.
Ed25519
Ed25519 — SLIP-10 full-hardened path m/44'/506'/0'/0'/{index}'.
Matches casper-client keygen default algorithm (different path
convention from Ledger secp).
Trait Implementations§
impl Copy for KeyAlgo
Source§impl DerivationStyle for KeyAlgo
impl DerivationStyle for KeyAlgo
impl Eq for KeyAlgo
impl StructuralPartialEq for KeyAlgo
Auto Trait Implementations§
impl Freeze for KeyAlgo
impl RefUnwindSafe for KeyAlgo
impl Send for KeyAlgo
impl Sync for KeyAlgo
impl Unpin for KeyAlgo
impl UnsafeUnpin for KeyAlgo
impl UnwindSafe for KeyAlgo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more