aztec-nr - noir_aztec::protocol::address::aztec_address

Struct AztecAddress

pub struct AztecAddress {
    pub inner: Field,
}

Fields

inner: Field

Implementations

impl AztecAddress

pub fn zero() -> Self pub fn is_valid(self) -> bool

Returns true if the address is valid.

An invalid address is one that can be proven to not be correctly derived, meaning it contains no contract code, public keys, etc., and can therefore not receive messages nor execute calls.

pub fn to_address_point(self) -> Option<AddressPoint>

Returns an address's AddressPoint.

This can be used to create shared secrets with the owner of the address. If the address is invalid (see AztecAddress::is_valid) then this returns Option::none(), and no shared secrets can be created.

pub fn compute(public_keys: PublicKeys, partial_address: PartialAddress) -> Self pub fn compute_from_class_id( contract_class_id: ContractClassId, salted_initialization_hash: SaltedInitializationHash, public_keys: PublicKeys, ) -> Self pub fn is_zero(self) -> bool pub fn assert_is_zero(self)

Trait implementations

impl Deserialize for AztecAddress

pub fn deserialize(fields: [Field; 1]) -> Self pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self

impl Empty for AztecAddress

pub fn empty() -> Self pub fn is_empty(self) -> bool pub fn assert_empty<let S: u32>(self, msg: str<S>)

impl Eq for AztecAddress

pub fn eq(_self: Self, _other: Self) -> bool

impl FromField for AztecAddress

pub fn from_field(value: Field) -> Self

impl Packable for AztecAddress

pub fn pack(self) -> [Field; 1] pub fn unpack(packed: [Field; 1]) -> Self

impl Serialize for AztecAddress

pub fn serialize(self) -> [Field; 1] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)

impl ToField for AztecAddress

pub fn to_field(self) -> Field