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