pub enum SignPolicy {
Managed,
External,
}Expand description
Specifies how an added state-transition input should be signed.
Variants§
Managed
The program (via Arch) manages signing responsibility for this input.
This applies when the signer has either:
- Already signed the transaction (e.g., fee payer or any other account that has signed)
- Will be signed by the program itself (e.g., program PDAs)
An InputToSign entry is recorded for Arch to handle the signature.
External
A third-party will provide the signature for this input.
This applies to accounts owned by other programs (e.g., via CPI) or signers
which have not signed this transaction. No InputToSign entry is recorded.
Trait Implementations§
Source§impl Clone for SignPolicy
impl Clone for SignPolicy
Source§fn clone(&self) -> SignPolicy
fn clone(&self) -> SignPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignPolicy
Source§impl Debug for SignPolicy
impl Debug for SignPolicy
impl Eq for SignPolicy
Source§impl PartialEq for SignPolicy
impl PartialEq for SignPolicy
Source§fn eq(&self, other: &SignPolicy) -> bool
fn eq(&self, other: &SignPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignPolicy
Auto Trait Implementations§
impl Freeze for SignPolicy
impl RefUnwindSafe for SignPolicy
impl Send for SignPolicy
impl Sync for SignPolicy
impl Unpin for SignPolicy
impl UnsafeUnpin for SignPolicy
impl UnwindSafe for SignPolicy
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