Struct taple_core::signature::Signed
source · pub struct Signed<T: BorshSerialize + BorshDeserialize + Clone> {
pub content: T,
pub signature: Signature,
}
Expand description
Represents any signed data entity
Fields§
§content: T
The data that is signed
signature: Signature
The signature accompanying the data
Implementations§
source§impl Signed<Event>
impl Signed<Event>
pub fn from_genesis_request( event_request: Signed<EventRequest>, subject_keys: &KeyPair, gov_version: u64, init_state: &ValueWrapper ) -> Result<Self, SubjectError>
pub fn verify_signatures(&self) -> Result<(), SubjectError>
pub fn verify_eval_appr( &self, subject_context: SubjectContext, eval_sign_info: (&HashSet<KeyIdentifier>, u32, u32), appr_sign_info: (&HashSet<KeyIdentifier>, u32, u32) ) -> Result<(), SubjectError>
source§impl Signed<EventRequest>
impl Signed<EventRequest>
Trait Implementations§
source§impl<T> BorshDeserialize for Signed<T>where
T: BorshDeserialize + BorshSerialize + BorshDeserialize + Clone,
Signature: BorshDeserialize,
impl<T> BorshDeserialize for Signed<T>where T: BorshDeserialize + BorshSerialize + BorshDeserialize + Clone, Signature: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<T> BorshSerialize for Signed<T>where
T: BorshSerialize + BorshSerialize + BorshDeserialize + Clone,
Signature: BorshSerialize,
impl<T> BorshSerialize for Signed<T>where T: BorshSerialize + BorshSerialize + BorshDeserialize + Clone, Signature: BorshSerialize,
source§impl<'de, T> Deserialize<'de> for Signed<T>where
T: Deserialize<'de> + BorshSerialize + BorshDeserialize + Clone,
impl<'de, T> Deserialize<'de> for Signed<T>where T: Deserialize<'de> + BorshSerialize + BorshDeserialize + Clone,
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 + BorshSerialize + BorshDeserialize + Clone> PartialEq<Signed<T>> for Signed<T>
impl<T: PartialEq + BorshSerialize + BorshDeserialize + Clone> PartialEq<Signed<T>> for Signed<T>
source§impl<T: PartialOrd + BorshSerialize + BorshDeserialize + Clone> PartialOrd<Signed<T>> for Signed<T>
impl<T: PartialOrd + BorshSerialize + BorshDeserialize + Clone> PartialOrd<Signed<T>> for Signed<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> Serialize for Signed<T>where
T: Serialize + BorshSerialize + BorshDeserialize + Clone,
impl<T> Serialize for Signed<T>where T: Serialize + BorshSerialize + BorshDeserialize + Clone,
source§impl TryFrom<Signed<EventRequest>> for TapleRequest
impl TryFrom<Signed<EventRequest>> for TapleRequest
impl<T: Eq + BorshSerialize + BorshDeserialize + Clone> Eq for Signed<T>
impl<T: BorshSerialize + BorshDeserialize + Clone> StructuralEq for Signed<T>
impl<T: BorshSerialize + BorshDeserialize + Clone> StructuralPartialEq for Signed<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Signed<T>where T: RefUnwindSafe,
impl<T> Send for Signed<T>where T: Send,
impl<T> Sync for Signed<T>where T: Sync,
impl<T> Unpin for Signed<T>where T: Unpin,
impl<T> UnwindSafe for Signed<T>where T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
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.