UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
bip143.hpp File Reference
#include <array>
#include <cstdint>
#include <cstddef>
#include <vector>

Go to the source code of this file.

Classes

struct  secp256k1::Outpoint
 
struct  secp256k1::TxOutput
 
struct  secp256k1::Bip143Preimage
 

Namespaces

namespace  secp256k1
 

Enumerations

enum class  secp256k1::SighashType : std::uint32_t { secp256k1::ALL = 0x01 , secp256k1::NONE = 0x02 , secp256k1::SINGLE = 0x03 , secp256k1::ANYONECANPAY = 0x80 }
 

Functions

std::array< std::uint8_t, 32 > secp256k1::bip143_hash_prevouts (const Outpoint *outpoints, std::size_t count) noexcept
 
std::array< std::uint8_t, 32 > secp256k1::bip143_hash_sequence (const std::uint32_t *sequences, std::size_t count) noexcept
 
std::array< std::uint8_t, 32 > secp256k1::bip143_hash_outputs (const TxOutput *outputs, std::size_t count) noexcept
 
Bip143Preimage secp256k1::bip143_build_preimage (std::uint32_t version, const Outpoint *outpoints, std::size_t input_count, const std::uint32_t *sequences, const TxOutput *outputs, std::size_t output_count, std::uint32_t locktime) noexcept
 
std::array< std::uint8_t, 32 > secp256k1::bip143_sighash (const Bip143Preimage &preimage, const Outpoint &outpoint, const std::uint8_t *script_code, std::size_t script_code_len, std::uint64_t value, std::uint32_t sequence, std::uint32_t sighash_type) noexcept
 
std::array< std::uint8_t, 25 > secp256k1::bip143_p2wpkh_script_code (const std::uint8_t pubkey_hash[20]) noexcept