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