• 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
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                • Certificates
                • Messages
                  • Message-certs-with-dest
                  • Message
                    • Message-fix
                    • Message-equiv
                    • Make-message
                      • Message->certificate
                      • Message->destination
                      • Change-message
                      • Messagep
                    • Make-certificate-messages
                    • Message-set->certificate-set
                    • Message-set
                  • Transactions
                  • Validator-states
                  • Blocks
                  • Addresses
                • Events
                • Reachability
            • Aleobft-dynamic
            • Aleobft-stake
            • Aleobft-proposals
            • 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
    • Message

    Make-message

    Basic constructor macro for message structures.

    Syntax
    (make-message [:certificate <certificate>] 
                  [:destination <destination>]) 
    

    This is the usual way to construct message structures. It simply conses together a structure with the specified fields.

    This macro generates a new message structure from scratch. See also change-message, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-message

    (defmacro make-message (&rest args)
      (std::make-aggregate 'message
                           args '((:certificate) (:destination))
                           'make-message
                           nil))

    Function: message

    (defun message (certificate destination)
      (declare (xargs :guard (and (certificatep certificate)
                                  (addressp destination))))
      (declare (xargs :guard t))
      (let ((__function__ 'message))
        (declare (ignorable __function__))
        (b* ((certificate (mbe :logic (certificate-fix certificate)
                               :exec certificate))
             (destination (mbe :logic (address-fix destination)
                               :exec destination)))
          (list (cons 'certificate certificate)
                (cons 'destination destination)))))