• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
          • Command-error
          • Sign
          • Init-from-mnemonic
          • Command-error-message
          • Stat
            • Stat-fix
            • Stat-equiv
            • Statp
            • Make-stat
              • Stat->keys
              • Stat->addresses
              • Change-stat
            • Next-key
            • Init-from-entropy
            • Process-command
            • Transaction-message
            • Maybe-command-error
            • Maybe-stat
            • Check-stat-file-present
            • Valid-key-path-p
            • String-to-byte-list
            • Load-stat
            • Mnemonic-message
            • Process-sign
            • Process-init-from-entropy
            • All-valid-key-paths-p
            • String-to-word
            • String-to-nat
            • Process-next-key
            • Wallet
            • Process-init-from-mnemonic
            • Check-stat-file-absent
            • Stat-wfp
            • Save-stat
            • Stat-addresses-bounded-p
            • Stat-all-valid-key-paths-p
            • Stat-priv-keys-p
            • Stat-root-depth-zero-p
            • Stat-path-prefix-in-tree-p
            • Crypto-hdwallet-executable
            • *stat-filepath*
            • *key-path-prefix*
            • *coin-type-index*
            • *purpose-index*
            • *external-chain-index*
            • *command-name-init-from-mnemonic*
            • *command-name-init-from-entropy*
            • *account-index*
            • *command-name-sign*
            • *command-name-next-key*
          • Apt
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Stat

    Make-stat

    Basic constructor macro for stat structures.

    Syntax
    (make-stat [:keys <keys>] 
               [:addresses <addresses>]) 
    

    This is the usual way to construct stat structures. It simply conses together a structure with the specified fields.

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

    Definition

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

    Macro: make-stat

    (defmacro make-stat (&rest args)
      (std::make-aggregate 'stat
                           args '((:keys) (:addresses))
                           'make-stat
                           nil))

    Function: stat

    (defun stat (keys addresses)
      (declare (xargs :guard (and (bitcoin::bip32-key-treep keys)
                                  (natp addresses))))
      (declare (xargs :guard t))
      (let ((__function__ 'stat))
        (declare (ignorable __function__))
        (b* ((keys (mbe :logic (bitcoin::bip32-key-tree-fix keys)
                        :exec keys))
             (addresses (mbe :logic (nfix addresses)
                             :exec addresses)))
          (cons :state (list keys addresses)))))