• 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
        • Mmp-trees
        • Semaphore
        • Database
        • Cryptography
        • Rlp
          • Rlp-tree
          • Rlp-decoding-executable
          • Rlp-decodability
          • Rlp-encoding
            • Rlp-encode-tree
            • Rlp-encode-bytes
            • Rlp-scalar-encoding-p
            • Rlp-bytes-encoding-p
            • Rlp-tree-encoding-p
            • Rlp-encode-scalar
          • Rlp-decoding-declarative
          • Rlp-big-endian-representations
        • Transactions
        • Hex-prefix
        • Basics
        • Addresses
      • 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
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Rlp

Rlp-encoding

RLP encoding.

We specify RLP encoding via functions from byte arrays, trees, and scalars to byte arrays. These functions closely correspond to the ones in [YP:B]. They are high-level, yet executable.

We also define valid RLP encodings, as images of the encoding functions. These are declaratively defined, non-executable predicates.

Subtopics

Rlp-encode-tree
RLP encoding of a tree.
Rlp-encode-bytes
RLP encoding of a byte array.
Rlp-scalar-encoding-p
Check if a byte array is an RLP encoding of a scalar.
Rlp-bytes-encoding-p
Check if a byte array is an RLP encoding of a byte array.
Rlp-tree-encoding-p
Check if a byte array is an RLP encoding of a tree.
Rlp-encode-scalar
RLP encoding of a scalar.