[−][src]Struct sn_transfers::ReplicaSigning
The Replica is the part of an AT2 system that forms validating groups, and signs individual transfers between wallets. Replicas validate requests to debit an wallet, and apply operations that has a valid "debit agreement proof" from the group, i.e. signatures from a quorum of its peers. Replicas don't initiate transfers or drive the algo - only Actors do.
Implementations
impl ReplicaSigning
[src]
pub fn new(
secret_key: SecretKeyShare,
key_index: usize,
peer_replicas: PublicKeySet
) -> Self
[src]
secret_key: SecretKeyShare,
key_index: usize,
peer_replicas: PublicKeySet
) -> Self
A new instance
pub fn replicas_pk_set(&self) -> PublicKeySet
[src]
pub fn sign_transfer(
&self,
signed_transfer: &SignedTransfer
) -> Result<Option<(SignatureShare, SignatureShare)>, Error>
[src]
&self,
signed_transfer: &SignedTransfer
) -> Result<Option<(SignatureShare, SignatureShare)>, Error>
pub fn sign_validated_debit(
&self,
debit: &SignedDebit
) -> Result<Option<SignatureShare>, Error>
[src]
&self,
debit: &SignedDebit
) -> Result<Option<SignatureShare>, Error>
pub fn sign_validated_credit(
&self,
credit: &SignedCredit
) -> Result<Option<SignatureShare>, Error>
[src]
&self,
credit: &SignedCredit
) -> Result<Option<SignatureShare>, Error>
pub fn sign_credit_proof(
&self,
proof: &CreditAgreementProof
) -> Result<Option<SignatureShare>, Error>
[src]
&self,
proof: &CreditAgreementProof
) -> Result<Option<SignatureShare>, Error>
Trait Implementations
impl Clone for ReplicaSigning
[src]
pub fn clone(&self) -> ReplicaSigning
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReplicaSigning
[src]
impl Eq for ReplicaSigning
[src]
impl PartialEq<ReplicaSigning> for ReplicaSigning
[src]
pub fn eq(&self, other: &ReplicaSigning) -> bool
[src]
pub fn ne(&self, other: &ReplicaSigning) -> bool
[src]
impl StructuralEq for ReplicaSigning
[src]
impl StructuralPartialEq for ReplicaSigning
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReplicaSigning
[src]
impl Send for ReplicaSigning
[src]
impl Sync for ReplicaSigning
[src]
impl Unpin for ReplicaSigning
[src]
impl UnwindSafe for ReplicaSigning
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub 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>,