pub struct CrossCheckedScopeBindingV1 {Show 14 fields
pub protocol_version: u16,
pub authority_did: Did,
pub authority_key_id: String,
pub grant_id: [u8; 32],
pub scope_alias: [u8; 32],
pub audience: String,
pub permission: Permission,
pub key_epoch: u64,
pub valid_from_ms: u64,
pub valid_until_ms: u64,
pub chain_fingerprint: Hash256,
pub binding_signer_did: Did,
pub binding_signer_key_id: String,
pub signature: Signature,
}Expand description
Signed binding between one child authority and one opaque workspace scope.
Fields§
§protocol_version: u16§grant_id: [u8; 32]§scope_alias: [u8; 32]§audience: String§permission: Permission§key_epoch: u64§valid_from_ms: u64§valid_until_ms: u64§chain_fingerprint: Hash256§binding_signer_did: Did§binding_signer_key_id: String§signature: SignatureImplementations§
Source§impl CrossCheckedScopeBindingV1
impl CrossCheckedScopeBindingV1
Sourcepub fn signing_preimage(&self) -> Result<Vec<u8>, AnchorStoreError>
pub fn signing_preimage(&self) -> Result<Vec<u8>, AnchorStoreError>
Deterministic, map-free CBOR preimage signed by the CrossChecked intermediate authority.
§Errors
Returns a serialization error if canonical CBOR encoding fails.
Trait Implementations§
Source§impl Clone for CrossCheckedScopeBindingV1
impl Clone for CrossCheckedScopeBindingV1
Source§impl Debug for CrossCheckedScopeBindingV1
impl Debug for CrossCheckedScopeBindingV1
Source§impl<'de> Deserialize<'de> for CrossCheckedScopeBindingV1
impl<'de> Deserialize<'de> for CrossCheckedScopeBindingV1
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 CrossCheckedScopeBindingV1
impl StructuralPartialEq for CrossCheckedScopeBindingV1
Auto Trait Implementations§
impl Freeze for CrossCheckedScopeBindingV1
impl RefUnwindSafe for CrossCheckedScopeBindingV1
impl Send for CrossCheckedScopeBindingV1
impl Sync for CrossCheckedScopeBindingV1
impl Unpin for CrossCheckedScopeBindingV1
impl UnsafeUnpin for CrossCheckedScopeBindingV1
impl UnwindSafe for CrossCheckedScopeBindingV1
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.