Addend point in the sum that yields the Pedersen hash.
(pedersen-addend segment i) → point
This is the result of the scalar multiplication between the integer returned by pedersen-scalar and the generator point returned by pedersen-generator.
Function:
(defun pedersen-addend (segment i) (declare (xargs :guard (and (bit-listp segment) (natp i)))) (declare (xargs :guard (integerp (/ (len segment) 4)))) (let ((acl2::__function__ 'pedersen-addend)) (declare (ignorable acl2::__function__)) (baby-jubjub-mul (pedersen-scalar segment) (pedersen-generator i))))
Theorem:
(defthm baby-jubjub-pointp-of-pedersen-addend (b* ((point (pedersen-addend segment i))) (baby-jubjub-pointp point)) :rule-classes :rewrite)