pub struct RotationProofChallenge {
pub account_address: AccountAddress,
pub module_name: String,
pub struct_name: String,
pub sequence_number: u64,
pub originator: AccountAddress,
pub current_auth_key: AccountAddress,
pub new_public_key: Vec<u8>,
}Expand description
The challenge signed (by both the current and new keys) to authorize an authentication-key rotation.
The field order and the leading domain fields (account_address,
module_name, struct_name) are part of the BCS-serialized bytes and must
match 0x1::account::RotationProofChallenge exactly.
Fields§
§account_address: AccountAddressAddress of the module defining the challenge (0x1).
module_name: StringModule name ("account").
struct_name: StringStruct name ("RotationProofChallenge").
sequence_number: u64The current sequence number of the account being rotated.
originator: AccountAddressThe account whose key is being rotated.
current_auth_key: AccountAddressThe account’s current authentication key, as an address.
new_public_key: Vec<u8>The new public key bytes to rotate to.
Implementations§
Source§impl RotationProofChallenge
impl RotationProofChallenge
Sourcepub fn new(
sequence_number: u64,
originator: AccountAddress,
current_auth_key: AccountAddress,
new_public_key: Vec<u8>,
) -> Self
pub fn new( sequence_number: u64, originator: AccountAddress, current_auth_key: AccountAddress, new_public_key: Vec<u8>, ) -> Self
Builds the challenge for rotating originator (with the given
sequence_number and current_auth_key) to new_public_key.
Trait Implementations§
Source§impl Clone for RotationProofChallenge
impl Clone for RotationProofChallenge
Source§fn clone(&self) -> RotationProofChallenge
fn clone(&self) -> RotationProofChallenge
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 moreSource§impl Debug for RotationProofChallenge
impl Debug for RotationProofChallenge
Source§impl<'de> Deserialize<'de> for RotationProofChallenge
impl<'de> Deserialize<'de> for RotationProofChallenge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RotationProofChallenge
Source§impl PartialEq for RotationProofChallenge
impl PartialEq for RotationProofChallenge
Source§impl Serialize for RotationProofChallenge
impl Serialize for RotationProofChallenge
impl StructuralPartialEq for RotationProofChallenge
Auto Trait Implementations§
impl Freeze for RotationProofChallenge
impl RefUnwindSafe for RotationProofChallenge
impl Send for RotationProofChallenge
impl Sync for RotationProofChallenge
impl Unpin for RotationProofChallenge
impl UnsafeUnpin for RotationProofChallenge
impl UnwindSafe for RotationProofChallenge
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMoveArg for Twhere
T: Serialize,
impl<T> IntoMoveArg for Twhere
T: Serialize,
Source§fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
Converts this value into BCS-encoded bytes. Read more