Enum Revision
pub enum Revision {
R0,
R2,
}Expand description
The revision of ZIP 316 Unified Encoding used for a particular address or viewing key.
Revision 1 has no variant here because it was withdrawn before anything encoded it. It
proposed transparent-permitting Unified Addresses that inspection could not tell apart
from shielded-only ones, and Revision 2 supersedes it with the zu and tu prefixes,
which make that distinction visible.
See ZIP 316 for details.
Variants§
R0
Revision 0 of the unified encoding format.
This is the original format, which requires at least one shielded receiver in both Unified Addresses and Unified Viewing Keys.
R2
Revision 2 of the unified encoding format.
This revision adds metadata items, such as address expiry, and drops the
requirement that a Unified Viewing Key contain a shielded item. A Unified Address
carries the zu prefix when it has no transparent receiver, and the tu prefix
when it has one.
Implementations§
Trait Implementations§
impl Copy for Revision
impl Eq for Revision
§impl Ord for Revision
impl Ord for Revision
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialOrd for Revision
impl PartialOrd for Revision
impl StructuralPartialEq for Revision
Auto Trait Implementations§
impl Freeze for Revision
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnsafeUnpin for Revision
impl UnwindSafe for Revision
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more