• 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-pub-key-fix
                • Bip32-ext-pub-key-equiv
                • Make-bip32-ext-pub-key
                  • Bip32-ext-pub-key->chain-code
                  • Bip32-ext-pub-key->key
                  • Bip32-ext-pub-key-p
                  • Change-bip32-ext-pub-key
                • Bip32-ext-priv-key
                • 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-pub-key

    Make-bip32-ext-pub-key

    Basic constructor macro for bip32-ext-pub-key structures.

    Syntax
    (make-bip32-ext-pub-key [:key <key>] 
                            [:chain-code <chain-code>]) 
    

    This is the usual way to construct bip32-ext-pub-key structures. It simply conses together a structure with the specified fields.

    This macro generates a new bip32-ext-pub-key structure from scratch. See also change-bip32-ext-pub-key, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-bip32-ext-pub-key

    (defmacro make-bip32-ext-pub-key (&rest args)
      (std::make-aggregate 'bip32-ext-pub-key
                           args '((:key) (:chain-code))
                           'make-bip32-ext-pub-key
                           nil))

    Function: bip32-ext-pub-key

    (defun bip32-ext-pub-key (key chain-code)
      (declare (xargs :guard (and (secp256k1-pub-key-p key)
                                  (bip32-chain-code-p chain-code))))
      (declare (xargs :guard t))
      (let ((__function__ 'bip32-ext-pub-key))
        (declare (ignorable __function__))
        (b* ((key (mbe :logic (ecurve::secp256k1-pub-key-fix key)
                       :exec key))
             (chain-code (mbe :logic (bip32-chain-code-fix chain-code)
                              :exec chain-code)))
          (list key chain-code))))