/ src / common / types.h
types.h
 1  // Copyright (c) 2010-present The Bitcoin Core developers
 2  // Distributed under the MIT software license, see the accompanying
 3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 4  
 5  //! @file common/types.h is a home for simple enum and struct type definitions
 6  //! that can be used internally by functions in the libbitcoin_common library,
 7  //! but also used externally by node, wallet, and GUI code.
 8  //!
 9  //! This file is intended to define only simple types that do not have external
10  //! dependencies. More complicated types should be defined in dedicated header
11  //! files.
12  
13  #ifndef BITCOIN_COMMON_TYPES_H
14  #define BITCOIN_COMMON_TYPES_H
15  
16  namespace common {
17  enum class PSBTError {
18      MISSING_INPUTS,
19      SIGHASH_MISMATCH,
20      EXTERNAL_SIGNER_NOT_FOUND,
21      EXTERNAL_SIGNER_FAILED,
22      UNSUPPORTED,
23      INCOMPLETE,
24      OK,
25  };
26  } // namespace common
27  
28  #endif // BITCOIN_COMMON_TYPES_H