PublicKey
Event emitted when a user registers their public key.This event is emitted when a user registers their account in the privacy system. It provides transparency about user registration while maintaining the privacy of their transactions. # Registration Process - Users must register before they can receive encrypted outputs - The public key is used for encrypted communication - Only the account owner can register their own account # Privacy Features - The public key is necessary for encrypted communication - Registration does not reveal transaction history or balances - Enables privacy-preserving communication between users
Fully qualified path: obscura::events::PublicKey
#[derive(Drop, starknet::Event)]
pub struct PublicKey {
#[key]
pub owner: ContractAddress,
pub key: ByteArray,
}
Members
owner
The owner's contract address that controls this account. This is the key field used for indexing and querying events.
Fully qualified path: obscura::events::PublicKey::owner
pub owner: ContractAddress
key
The public key used for encrypted communication. Used to encrypt transaction outputs and verify transaction signatures.
Fully qualified path: obscura::events::PublicKey::key
pub key: ByteArray