pub struct Keychain<T: ReadOnly + SignOnly> {
pub keys: Vec<T>,
pub short_addr_to_key_index: HashMap<Id, u32>,
}
Expand description
Support multiple keys as a chain. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/secp256k1fx#Keychain ref. https://github.com/ava-labs/avalanchego/blob/v1.7.9/wallet/chain/p/builder.go
Fields§
§keys: Vec<T>
§short_addr_to_key_index: HashMap<Id, u32>
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Keychain<T>where
T: Deserialize<'de> + ReadOnly + SignOnly,
impl<'de, T> Deserialize<'de> for Keychain<T>where T: Deserialize<'de> + ReadOnly + SignOnly,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq + ReadOnly + SignOnly> PartialEq<Keychain<T>> for Keychain<T>
impl<T: PartialEq + ReadOnly + SignOnly> PartialEq<Keychain<T>> for Keychain<T>
impl<T: Eq + ReadOnly + SignOnly> Eq for Keychain<T>
impl<T: ReadOnly + SignOnly> StructuralEq for Keychain<T>
impl<T: ReadOnly + SignOnly> StructuralPartialEq for Keychain<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Keychain<T>where T: RefUnwindSafe,
impl<T> Send for Keychain<T>where T: Send,
impl<T> Sync for Keychain<T>where T: Sync,
impl<T> Unpin for Keychain<T>where T: Unpin,
impl<T> UnwindSafe for Keychain<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
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>
Wrap the input message
T
in a tonic::Request