pub struct TrustChain {
pub signer: HarnessSigner,
pub system_account: String,
/* private fields */
}Expand description
The fixture trust chain.
Fields§
§signer: HarnessSigner§system_account: StringThe system account’s public nkey. Its private identity key is discarded; user JWTs are signed with a separate throwaway signing key.
Implementations§
Source§impl TrustChain
impl TrustChain
pub fn generate() -> Self
Sourcepub fn signer_public(&self) -> String
pub fn signer_public(&self) -> String
The operator signer as the operator JWT lists it (O...).
Sourcepub fn box_root_public(&self) -> String
pub fn box_root_public(&self) -> String
The public nkey (A...) trusted to sign users of the box account.
The box account JWT lists this key in signing_keys.
pub fn operator_jwt(&self) -> String
pub fn system_account_jwt(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrustChain
impl RefUnwindSafe for TrustChain
impl Send for TrustChain
impl Sync for TrustChain
impl Unpin for TrustChain
impl UnsafeUnpin for TrustChain
impl UnwindSafe for TrustChain
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