pub struct SignerCap {
pub repo: RepoId,
pub epoch: ObjectId,
pub owner: Option<SerdeSecret<SecretKeyShare>>,
pub total_order: Option<SerdeSecret<SecretKeyShare>>,
pub partial_order: Option<SerdeSecret<SecretKeyShare>>,
}
Expand description
when a signing capability is removed, a new SignerCap should be committed to User branch, with the removed key set to None
Fields§
§repo: RepoId
§epoch: ObjectId
latest RootBranch commit or Quorum commit that defines the signing epoch
owner: Option<SerdeSecret<SecretKeyShare>>
§total_order: Option<SerdeSecret<SecretKeyShare>>
§partial_order: Option<SerdeSecret<SecretKeyShare>>
Implementations§
Source§impl SignerCap
impl SignerCap
pub fn sign_with_owner(&self, content: &[u8]) -> Result<SignatureShare, NgError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignerCap
impl<'de> Deserialize<'de> for SignerCap
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 SignerCap
impl StructuralPartialEq for SignerCap
Auto Trait Implementations§
impl Freeze for SignerCap
impl RefUnwindSafe for SignerCap
impl Send for SignerCap
impl Sync for SignerCap
impl Unpin for SignerCap
impl UnwindSafe for SignerCap
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