Basic constructor macro for message-certificate structures.
(make-message-certificate [:certificate <certificate>] [:destination <destination>])
This is the usual way to construct message-certificate structures. It simply conses together a structure with the specified fields.
This macro generates a new message-certificate structure from scratch. See also change-message-certificate, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-message-certificate (&rest args) (std::make-aggregate 'message-certificate args '((:certificate) (:destination)) 'make-message-certificate nil))
Function:
(defun message-certificate (certificate destination) (declare (xargs :guard (and (certificatep certificate) (addressp destination)))) (declare (xargs :guard t)) (let ((__function__ 'message-certificate)) (declare (ignorable __function__)) (b* ((certificate (mbe :logic (certificate-fix certificate) :exec certificate)) (destination (mbe :logic (address-fix destination) :exec destination))) (cons :certificate (list certificate destination)))))