#[repr(C)]pub struct PubkeyAccountPreimage {
pub pubkey_hash: PublicKeyHash,
pub nonce: u64,
}Expand description
The preimage of a standalone-pubkey account’s address:
sha256(cxs(DomainSeparator("PubkeyAccount")) || cxs(PubkeyAccountPreimage)).
It names the key by its PublicKeyHash rather than holding the key, so
that the auth claim contracts read stays small whatever the scheme. The
key itself travels with the signatures, as
SignedTransaction::pubkey_claim_key in transaction.x.
Fields§
§pubkey_hash: PublicKeyHash§nonce: u64Trait Implementations§
Source§impl Clone for PubkeyAccountPreimage
impl Clone for PubkeyAccountPreimage
Source§fn clone(&self) -> PubkeyAccountPreimage
fn clone(&self) -> PubkeyAccountPreimage
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 ConstMaxSize for PubkeyAccountPreimage
impl ConstMaxSize for PubkeyAccountPreimage
Source§impl ConstMaxSize for PubkeyAccountPreimage
impl ConstMaxSize for PubkeyAccountPreimage
Source§impl Debug for PubkeyAccountPreimage
impl Debug for PubkeyAccountPreimage
impl EncodesAs<PubkeyAccountPreimage> for PubkeyAccountPreimage
impl Eq for PubkeyAccountPreimage
Source§impl Hash for PubkeyAccountPreimage
impl Hash for PubkeyAccountPreimage
Source§impl JsonSchema for PubkeyAccountPreimage
impl JsonSchema for PubkeyAccountPreimage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for PubkeyAccountPreimage
impl Ord for PubkeyAccountPreimage
Source§fn cmp(&self, other: &PubkeyAccountPreimage) -> Ordering
fn cmp(&self, other: &PubkeyAccountPreimage) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PubkeyAccountPreimage
impl PartialEq for PubkeyAccountPreimage
Source§impl PartialOrd for PubkeyAccountPreimage
impl PartialOrd for PubkeyAccountPreimage
Source§impl<'_r> ReadXDR<'_r> for PubkeyAccountPreimage
impl<'_r> ReadXDR<'_r> for PubkeyAccountPreimage
Source§fn read_xdr<R>(r: &mut R) -> Result<PubkeyAccountPreimage, ReadError>where
R: Reader<'_r>,
fn read_xdr<R>(r: &mut R) -> Result<PubkeyAccountPreimage, ReadError>where
R: Reader<'_r>,
Reads an XDR value from the reader. Read more
Source§fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, PubkeyAccountPreimage>,
) -> Result<Init<'__xdrs_s, PubkeyAccountPreimage>, ReadError>where
R: Reader<'_r>,
fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, PubkeyAccountPreimage>,
) -> Result<Init<'__xdrs_s, PubkeyAccountPreimage>, ReadError>where
R: Reader<'_r>,
Reads an XDR value directly into
slot, without first building it
on the stack. Read moreimpl StructuralPartialEq for PubkeyAccountPreimage
Source§impl WriteXDR for PubkeyAccountPreimage
impl WriteXDR for PubkeyAccountPreimage
Source§fn write_xdr<F, W>(&self, w: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
fn write_xdr<F, W>(&self, w: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W>(&self, w: &mut W)where
W: WriterUnchecked<F>,
unsafe fn write_xdr_unchecked<F, W>(&self, w: &mut W)where
W: WriterUnchecked<F>,
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for PubkeyAccountPreimage
impl RefUnwindSafe for PubkeyAccountPreimage
impl Send for PubkeyAccountPreimage
impl Sync for PubkeyAccountPreimage
impl Unpin for PubkeyAccountPreimage
impl UnsafeUnpin for PubkeyAccountPreimage
impl UnwindSafe for PubkeyAccountPreimage
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