Turn a Base58 character into the corresponding value.
(base58-char=>val char) → val
This is the inverse of base58-val=>char.
Function:
(defun base58-char=>val (char) (declare (xargs :guard (base58-characterp char))) (let ((__function__ 'base58-char=>val)) (declare (ignorable __function__)) (index-of (base58-character-fix char) *base58-characters*)))
Theorem:
(defthm base58-valuep-of-base58-char=>val (b* ((val (base58-char=>val char))) (base58-valuep val)) :rule-classes :rewrite)
Theorem:
(defthm base58-char=>val-of-base58-character-fix-char (equal (base58-char=>val (base58-character-fix char)) (base58-char=>val char)))
Theorem:
(defthm base58-char=>val-base58-character-equiv-congruence-on-char (implies (base58-character-equiv char char-equiv) (equal (base58-char=>val char) (base58-char=>val char-equiv))) :rule-classes :congruence)