[−][src]Struct grin_wallet_libwallet::SlatepackAddress
Definition of a Slatepack address
Fields
hrp: String
Human-readable prefix
pub_key: edDalekPublicKey
ed25519 Public key, to be bech32 encoded, interpreted as tor address or converted to an X25519 public key for encrypting slatepacks
Implementations
impl SlatepackAddress
[src]
pub fn new(pub_key: &edDalekPublicKey) -> Self
[src]
new with default hrp
pub fn random() -> Self
[src]
new with a random key
pub fn encoded_len(&self) -> Result<usize, Error>
[src]
calculate encoded length
Trait Implementations
impl Clone for SlatepackAddress
[src]
pub fn clone(&self) -> SlatepackAddress
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SlatepackAddress
[src]
impl<'de> Deserialize<'de> for SlatepackAddress
[src]
Deserialize from a bech32 string
pub fn deserialize<D>(deserializer: D) -> Result<SlatepackAddress, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for SlatepackAddress
[src]
impl Eq for SlatepackAddress
[src]
impl PartialEq<SlatepackAddress> for SlatepackAddress
[src]
pub fn eq(&self, other: &SlatepackAddress) -> bool
[src]
pub fn ne(&self, other: &SlatepackAddress) -> bool
[src]
impl Readable for SlatepackAddress
[src]
pub fn read<R: Reader>(reader: &mut R) -> Result<SlatepackAddress, Error>
[src]
impl Serialize for SlatepackAddress
[src]
Serializes a SlatepackAddress to a bech32 string
impl StructuralEq for SlatepackAddress
[src]
impl StructuralPartialEq for SlatepackAddress
[src]
impl TryFrom<&'_ SecretKey> for SlatepackAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(key: &SecretKey) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ str> for SlatepackAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(encoded: &str) -> Result<Self, Self::Error>
[src]
impl TryFrom<OnionV3Address> for SlatepackAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(addr: OnionV3Address) -> Result<SlatepackAddress, Error>
[src]
impl Writeable for SlatepackAddress
[src]
write binary trait
Auto Trait Implementations
impl RefUnwindSafe for SlatepackAddress
[src]
impl Send for SlatepackAddress
[src]
impl Sync for SlatepackAddress
[src]
impl Unpin for SlatepackAddress
[src]
impl UnwindSafe for SlatepackAddress
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,