Basic constructor macro for message structures.
(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.
This is an ordinary
Macro:
(defmacro make-message (&rest args) (std::make-aggregate 'message args '((:certificate) (:destination)) 'make-message nil))
Function:
(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)))))