Recognizer for bip32-ext-priv-key structures.
(bip32-ext-priv-key-p x) → *
Function:
(defun bip32-ext-priv-key-p (x) (declare (xargs :guard t)) (let ((__function__ 'bip32-ext-priv-key-p)) (declare (ignorable __function__)) (and (true-listp x) (eql (len x) 2) (b* ((key (std::da-nth 0 x)) (chain-code (std::da-nth 1 x))) (and (secp256k1-priv-key-p key) (bip32-chain-code-p chain-code))))))
Theorem:
(defthm consp-when-bip32-ext-priv-key-p (implies (bip32-ext-priv-key-p x) (consp x)) :rule-classes :compound-recognizer)