pub enum SparkKeyType {
Identity,
BaseSigning,
Deposit,
}
Expand description
Key types for Spark wallet.
Each key type corresponds to a specific path in the hierarchical deterministic wallet structure, with the path format: m/8797555’/account’/key_type’
The key types serve different purposes in the Spark wallet:
- Identity key: Used for wallet authentication and identification
- Base signing key: Used as the foundation for leaf-specific keys
- Temporary signing key: Used for one-time operations like deposits
These key types are encoded as the third component in the derivation path.
Variants§
Identity
Identity key with path m/8797555’/account’/0’
This key is used for wallet authentication, identification, and signature verification with Spark Operators.
BaseSigning
Base signing key with path m/8797555’/account’/1’
This key serves as the foundation for leaf-specific keys, which are derived by adding a leaf-specific index.
Deposit
Deposit key with path m/8797555’/account’/2’
This key is used to sign deposits transactions. After the deposit is signed,
the user should transfer the leaves to their BaseSigning key under the same
leaf UUID. This happens automatically in sparks-wallet
.
Trait Implementations§
Source§impl Clone for SparkKeyType
impl Clone for SparkKeyType
Source§fn clone(&self) -> SparkKeyType
fn clone(&self) -> SparkKeyType
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SparkKeyType
impl Debug for SparkKeyType
Source§impl PartialEq for SparkKeyType
impl PartialEq for SparkKeyType
impl Copy for SparkKeyType
impl Eq for SparkKeyType
impl StructuralPartialEq for SparkKeyType
Auto Trait Implementations§
impl Freeze for SparkKeyType
impl RefUnwindSafe for SparkKeyType
impl Send for SparkKeyType
impl Sync for SparkKeyType
impl Unpin for SparkKeyType
impl UnwindSafe for SparkKeyType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request