[−][src]Struct irmaseal_core::Identity
An IRMAseal identity, from which internally a Waters identity can be derived.
Fields
timestamp: u64
attribute: Attribute
Implementations
impl Identity
[src]
pub fn new(
timestamp: u64,
atype: &str,
value: Option<&str>
) -> Result<Identity, Error>
[src]
timestamp: u64,
atype: &str,
value: Option<&str>
) -> Result<Identity, Error>
Conveniently construct a new identity. It is also possible to directly construct this object.
Throws a ConstraintViolation when the attribute or identity strings are too long.
pub fn write_to<W: Writable>(&self, w: &mut W) -> Result<(), Error>
[src]
Write the byte representation of this identity as a bytestream.
pub fn read_from<R: Readable>(r: &mut R) -> Result<Identity, Error>
[src]
Construct an identity from a bytestream.
pub fn derive(&self) -> Identity
[src]
Derive the corresponding Waters identity in a deterministic way.
Uses self.write_to
and ibe::kiltz_vahlis_one::Identity:derive
internally.
Trait Implementations
impl Debug for Identity
[src]
impl<'de> Deserialize<'de> for Identity
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Identity> for Identity
[src]
impl Serialize for Identity
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Identity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,