• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
        • Aleobft
          • Aleobft-static
          • Aleobft-stake2
          • Aleobft-dynamic
          • Aleobft-stake
          • Aleobft-proposals
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                • Certificates
                • Transactions
                  • Transaction
                    • Transaction-fix
                    • Transaction-case
                    • Transaction-equiv
                    • Transactionp
                    • Transaction-bond
                    • Transaction-unbond
                    • Transaction-other
                    • Transaction-kind
                  • Transaction-list
                • Proposals
                • Messages
                • Validator-states
                • Blocks
                • Addresses
              • Events
              • Reachability
          • Library-extensions
        • Leo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Transactions

Transaction

Fixtype of transactions.

This is a tagged union type, introduced by fty::deftagsum.

Member Tags → Types
:bond → transaction-bond
:unbond → transaction-unbond
:other → transaction-other

We model three kinds of transactions: bond a validator with a given amount of stake, unbond a validator, and something else that does not bond or unbond validators; we leave the details of third kind open, via a wrapper of any ACL2 value.

Stake is modeled as a positive integer, which can be imagined to be Aleo micro-credits, but the exact unit of stake is irrelevant to our model. A bonding transaction consists of the address of the validator and the stake bonded. An unbonding transaction consists of just the address of the validator; implicitly, the transaction unbonds all the bonded stake.

Subtopics

Transaction-fix
Fixing function for transaction structures.
Transaction-case
Case macro for the different kinds of transaction structures.
Transaction-equiv
Basic equivalence relation for transaction structures.
Transactionp
Recognizer for transaction structures.
Transaction-bond
Transaction-unbond
Transaction-other
Transaction-kind
Get the kind (tag) of a transaction structure.