Define a customer wallet state
The account contains complete information about a user's private wallet. It is linked by the intermediate key
derived from the spending key
owned by the user. The holder of the spending key is called an account owner.
The account holds the current balance value and
spent offsetwhich separates all notes into spent and unspent. This is sufficient data to retrieve a wallet state.
An account is a tuple
- (10 bytes) is a random diversifier which is updated every time an account is updated. It acts like a salt.
- (32 bytes) is diversified public key (a value derived from theand intermediate key):
- (6 bytes) is the spent offset. It separates used (spent) and unused notes in the Merkle tree . Note that indexes beloware considered to be spent.
- (8 bytes) is the current account balance
The raw account size is 64 bytes.
Account transaction data never appears unencrypted in a public field. Only the account owner can decrypt it.