pub struct CanisterSigPublicKey {
pub canister_id: Principal,
pub seed: Vec<u8>,
}Expand description
A public key of canister signatures, see https://internetcomputer.org/docs/current/references/ic-interface-spec#canister-signatures
Fields§
§canister_id: Principal§seed: Vec<u8>Implementations§
Source§impl CanisterSigPublicKey
impl CanisterSigPublicKey
Sourcepub fn new(canister_id: Principal, seed: Vec<u8>) -> CanisterSigPublicKey
pub fn new(canister_id: Principal, seed: Vec<u8>) -> CanisterSigPublicKey
Constructs a new canister signatures public key.
pub fn try_from_raw(pk_raw: &[u8]) -> Result<CanisterSigPublicKey, String>
Trait Implementations§
Source§impl Clone for CanisterSigPublicKey
impl Clone for CanisterSigPublicKey
Source§fn clone(&self) -> CanisterSigPublicKey
fn clone(&self) -> CanisterSigPublicKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanisterSigPublicKey
impl Debug for CanisterSigPublicKey
Source§impl PartialEq for CanisterSigPublicKey
impl PartialEq for CanisterSigPublicKey
Source§impl TryFrom<&[u8]> for CanisterSigPublicKey
impl TryFrom<&[u8]> for CanisterSigPublicKey
impl Eq for CanisterSigPublicKey
impl StructuralPartialEq for CanisterSigPublicKey
Auto Trait Implementations§
impl Freeze for CanisterSigPublicKey
impl RefUnwindSafe for CanisterSigPublicKey
impl Send for CanisterSigPublicKey
impl Sync for CanisterSigPublicKey
impl Unpin for CanisterSigPublicKey
impl UnwindSafe for CanisterSigPublicKey
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