• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
        • Mmp-trees
        • Semaphore
        • Database
        • Cryptography
        • Rlp
        • Transactions
          • Make-signed-transaction
          • Transaction
          • Maybe-byte-list20
            • Maybe-byte-list20-fix
            • Maybe-byte-list20-equiv
            • Maybe-byte-list20-case
            • Maybe-byte-list20-some
            • Maybe-byte-list20-none
            • Maybe-byte-list20p
          • Rlp-decode-transaction
          • Rlp-encode-transaction
          • Rlp-transaction-encoding-p
        • Hex-prefix
        • Basics
        • Addresses
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
      • Bigmems
      • Builtins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Transactions

Maybe-byte-list20

Fixtype of byte arrays of length 20 and nil.

This is an option type introduced by fty::defoption. Note that defoption is just a wrapper for fty::defflexsum, so there are :none and :some member types, a case macro, and so forth.

Member Types
:none → maybe-byte-list20-none
Represents that no maybe-byte-list20 is available, i.e., Nothing or None.
:some → maybe-byte-list20-some
An available maybe-byte-list20, i.e., Just val or Some val.

The \mathbf{to} field of a transaction [YP:4.2] is either a 20-byte (i.e. 160-bit) address or the empty array (i.e. the only element of \mathbb{B}_0) [YP:(18)]. Both [YP:4.2] and [YP:(18)] mention \varnothing as the (only) element of \mathbb{B}_0; however, according to the definition of \mathbb{B} [YP:(178)], the empty array should be denoted as ().

Regardless, in our model the empty byte array is nil, so we use either a list of 20 bytes or nil to model the \mathbf{to} field of a transaction.

Subtopics

Maybe-byte-list20-fix
Fixing function for maybe-byte-list20 structures.
Maybe-byte-list20-equiv
Basic equivalence relation for maybe-byte-list20 structures.
Maybe-byte-list20-case
Case macro for the different kinds of maybe-byte-list20 structures.
Maybe-byte-list20-some
An available maybe-byte-list20, i.e., Just val or Some val.
Maybe-byte-list20-none
Represents that no maybe-byte-list20 is available, i.e., Nothing or None.
Maybe-byte-list20p
Recognizer for maybe-byte-list20 structures.