# Functions
Deserialize deserializes a stream of byte in an account.
NewOperator creates a new operator.
NewQueue creates a new queue, BatchSizeCircuit is the capacity.
NewTransfer creates a new transfer (to be signed).
# Constants
nbTransfers to batch in a proof.
# Variables
BatchSize size of a batch of transactions to put in a snark.
ErrAmountTooHigh the amount is bigger than the balance.
ErrIndexConsistency the map publicKey(string) -> index(int) gives access to the account position.
ErrNonce inconsistent nonce between transfer and account.
ErrNonExistingAccount account not in the database.
ErrSizeByteSlice memory checking.
ErrWrongSignature wrong signature.
SizeAccount byte size of a serialized account (5*32bytes) index ∥ nonce ∥ balance ∥ pubkeyX ∥ pubkeyY, each chunk is 32 bytes.
# Structs
Account describes a rollup account.
AccountConstraints accounts encoded as constraints.
Circuit "toy" rollup circuit where an operator can generate a proof that he processed some transactions.
Operator represents a rollup operator.
Queue queue for storing the transfers (fixed size queue).
Transfer describe a rollup transfer.
TransferConstraints transfer encoded as constraints.