pub struct SignedOwnershipResolution {
pub canonical: Vec<u8>,
pub local_signature: Vec<u8>,
pub acceptance_signature: Vec<u8>,
}Fields§
§canonical: Vec<u8>§local_signature: Vec<u8>§acceptance_signature: Vec<u8>Implementations§
Source§impl SignedOwnershipResolution
impl SignedOwnershipResolution
pub fn sign( value: &ThreadOwnershipResolution, local_owner: &impl Signer, acceptor: &impl Signer, ) -> Result<Self, Error>
Sourcepub fn verify(
&self,
winning_claim: &ThreadOwnershipClaim,
) -> Result<ThreadOwnershipResolution, Error>
pub fn verify( &self, winning_claim: &ThreadOwnershipClaim, ) -> Result<ThreadOwnershipResolution, Error>
This proves both signatures and the selected claim’s exact identity. Repository admission binds genesis, stored claims, frontier and current recipient capability; none may be inferred from these signatures alone.
Trait Implementations§
Source§impl Clone for SignedOwnershipResolution
impl Clone for SignedOwnershipResolution
Source§impl Debug for SignedOwnershipResolution
impl Debug for SignedOwnershipResolution
Source§impl<'de> Deserialize<'de> for SignedOwnershipResolution
impl<'de> Deserialize<'de> for SignedOwnershipResolution
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
impl Eq for SignedOwnershipResolution
impl StructuralPartialEq for SignedOwnershipResolution
Auto Trait Implementations§
impl Freeze for SignedOwnershipResolution
impl RefUnwindSafe for SignedOwnershipResolution
impl Send for SignedOwnershipResolution
impl Sync for SignedOwnershipResolution
impl Unpin for SignedOwnershipResolution
impl UnsafeUnpin for SignedOwnershipResolution
impl UnwindSafe for SignedOwnershipResolution
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