pub struct Identity {
pub insecure: bool,
/* private fields */
}Fields§
§insecure: boolWhether this identity is stored in unencrypted form. False for identities that are not stored at all.
Implementations§
Source§impl Identity
impl Identity
pub fn anonymous() -> Self
Sourcepub fn display_linked_wallets(
logger: &Logger,
wallet_config: &Path,
) -> Result<(), WalletConfigError>
pub fn display_linked_wallets( logger: &Logger, wallet_config: &Path, ) -> Result<(), WalletConfigError>
Logs all wallets that are configured in a WalletGlobalConfig.
pub fn load_wallet_config( path: &Path, ) -> Result<WalletGlobalConfig, WalletConfigError>
pub fn save_wallet_config( path: &Path, config: &WalletGlobalConfig, ) -> Result<(), SaveWalletConfigError>
pub fn map_wallets_to_renamed_identity( project_temp_dir: Option<PathBuf>, original_identity: &str, renamed_identity: &str, ) -> Result<(), MapWalletsToRenamedIdentityError>
Trait Implementations§
Source§impl Identity for Identity
impl Identity for Identity
Source§fn sender(&self) -> Result<Principal, String>
fn sender(&self) -> Result<Principal, String>
Returns a sender, ie. the Principal ID that is used to sign a request. Read more
Source§fn delegation_chain(&self) -> Vec<SignedDelegation>
fn delegation_chain(&self) -> Vec<SignedDelegation>
A list of signed delegations connecting
sender
to public_key, and in that order.Source§fn sign(&self, content: &EnvelopeContent) -> Result<Signature, String>
fn sign(&self, content: &EnvelopeContent) -> Result<Signature, String>
Sign a request ID derived from a content map. Read more
Source§fn sign_arbitrary(&self, content: &[u8]) -> Result<Signature, String>
fn sign_arbitrary(&self, content: &[u8]) -> Result<Signature, String>
Sign arbitrary bytes. Read more
Source§fn sign_delegation(&self, content: &Delegation) -> Result<Signature, String>
fn sign_delegation(&self, content: &Delegation) -> Result<Signature, String>
Auto Trait Implementations§
impl Freeze for Identity
impl !RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl !UnwindSafe for Identity
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more