• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
          • Bip32
            • Bip32-wallet-structure
            • Bip32-key-trees
            • Bip32-key-serialization
            • Bip32-key-derivation
            • Bip32-executable-attachments
            • Bip32-extended-keys
              • Bip32-chain-code
              • Bip32-ext-pub-key
              • Bip32-ext-priv-key
                • Bip32-ext-priv-key-fix
                • Bip32-ext-priv-key-equiv
                • Make-bip32-ext-priv-key
                • Bip32-ext-priv-key->chain-code
                • Bip32-ext-priv-key->key
                  • Change-bip32-ext-priv-key
                  • Bip32-ext-priv-key-p
                • Bip32-ext-key
              • Bip32-master-key-generation
            • Bech32
            • Bip39
            • Bip44
            • Base58
            • Bip43
            • Bytes
            • Base58check
            • Cryptography
            • Bip-350
            • Bip-173
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Bip32-ext-priv-key

    Bip32-ext-priv-key->key

    Get the key field from a bip32-ext-priv-key.

    Signature
    (bip32-ext-priv-key->key x) → key
    Arguments
    x — Guard (bip32-ext-priv-key-p x).
    Returns
    key — Type (secp256k1-priv-key-p key).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: bip32-ext-priv-key->key$inline

    (defun bip32-ext-priv-key->key$inline (x)
      (declare (xargs :guard (bip32-ext-priv-key-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'bip32-ext-priv-key->key))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (ecurve::secp256k1-priv-key-fix (std::da-nth 0 x)))
             :exec (std::da-nth 0 x))))

    Theorem: secp256k1-priv-key-p-of-bip32-ext-priv-key->key

    (defthm secp256k1-priv-key-p-of-bip32-ext-priv-key->key
      (b* ((key (bip32-ext-priv-key->key$inline x)))
        (secp256k1-priv-key-p key))
      :rule-classes :rewrite)

    Theorem: bip32-ext-priv-key->key$inline-of-bip32-ext-priv-key-fix-x

    (defthm bip32-ext-priv-key->key$inline-of-bip32-ext-priv-key-fix-x
      (equal (bip32-ext-priv-key->key$inline (bip32-ext-priv-key-fix x))
             (bip32-ext-priv-key->key$inline x)))

    Theorem: bip32-ext-priv-key->key$inline-bip32-ext-priv-key-equiv-congruence-on-x

    (defthm
     bip32-ext-priv-key->key$inline-bip32-ext-priv-key-equiv-congruence-on-x
     (implies (bip32-ext-priv-key-equiv x x-equiv)
              (equal (bip32-ext-priv-key->key$inline x)
                     (bip32-ext-priv-key->key$inline x-equiv)))
     :rule-classes :congruence)