Changeset View
Changeset View
Standalone View
Standalone View
src/psbt.h
// Copyright (c) 2009-2019 The Bitcoin Core developers | // Copyright (c) 2009-2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_PSBT_H | #ifndef BITCOIN_PSBT_H | ||||
#define BITCOIN_PSBT_H | #define BITCOIN_PSBT_H | ||||
#include <attributes.h> | #include <attributes.h> | ||||
#include <node/transaction.h> | #include <node/transaction.h> | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <pubkey.h> | #include <pubkey.h> | ||||
#include <script/sign.h> | #include <script/sign.h> | ||||
#include <script/signingprovider.h> | #include <script/signingprovider.h> | ||||
#include <optional> | |||||
// Magic bytes | // Magic bytes | ||||
static constexpr uint8_t PSBT_MAGIC_BYTES[5] = {'p', 's', 'b', 't', 0xff}; | static constexpr uint8_t PSBT_MAGIC_BYTES[5] = {'p', 's', 'b', 't', 0xff}; | ||||
// Global types | // Global types | ||||
static constexpr uint8_t PSBT_GLOBAL_UNSIGNED_TX = 0x00; | static constexpr uint8_t PSBT_GLOBAL_UNSIGNED_TX = 0x00; | ||||
// Input types | // Input types | ||||
static constexpr uint8_t PSBT_IN_UTXO = 0x00; | static constexpr uint8_t PSBT_IN_UTXO = 0x00; | ||||
▲ Show 20 Lines • Show All 559 Lines • Show Last 20 Lines |