Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Functions
script_tests.cpp File Reference
#include <iostream>
#include <fstream>
#include <vector>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/foreach.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/test/unit_test.hpp>
#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_writer_template.h"
#include "json/json_spirit_utils.h"
#include "main.h"
#include "wallet.h"
Include dependency graph for script_tests.cpp:

Go to the source code of this file.

Functions

uint256 SignatureHash (CScript scriptCode, const CTransaction &txTo, unsigned int nIn, int nHashType)
 
CScript ParseScript (string s)
 
Array read_json (const std::string &filename)
 
 BOOST_AUTO_TEST_CASE (script_valid)
 
 BOOST_AUTO_TEST_CASE (script_invalid)
 
 BOOST_AUTO_TEST_CASE (script_PushData)
 
CScript sign_multisig (CScript scriptPubKey, std::vector< CKey > keys, CTransaction transaction)
 
CScript sign_multisig (CScript scriptPubKey, const CKey &key, CTransaction transaction)
 
 BOOST_AUTO_TEST_CASE (script_CHECKMULTISIG12)
 
 BOOST_AUTO_TEST_CASE (script_CHECKMULTISIG23)
 
 BOOST_AUTO_TEST_CASE (script_combineSigs)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( script_valid  )

Definition at line 122 of file script_tests.cpp.

BOOST_AUTO_TEST_CASE ( script_invalid  )

Definition at line 150 of file script_tests.cpp.

BOOST_AUTO_TEST_CASE ( script_PushData  )

Definition at line 174 of file script_tests.cpp.

BOOST_AUTO_TEST_CASE ( script_CHECKMULTISIG12  )

Definition at line 231 of file script_tests.cpp.

BOOST_AUTO_TEST_CASE ( script_CHECKMULTISIG23  )

Definition at line 264 of file script_tests.cpp.

BOOST_AUTO_TEST_CASE ( script_combineSigs  )

Definition at line 331 of file script_tests.cpp.

CScript ParseScript ( string  s)

Definition at line 27 of file script_tests.cpp.

Array read_json ( const std::string &  filename)

Definition at line 89 of file script_tests.cpp.

CScript sign_multisig ( CScript  scriptPubKey,
std::vector< CKey keys,
CTransaction  transaction 
)

Definition at line 200 of file script_tests.cpp.

CScript sign_multisig ( CScript  scriptPubKey,
const CKey key,
CTransaction  transaction 
)

Definition at line 224 of file script_tests.cpp.

uint256 SignatureHash ( CScript  scriptCode,
const CTransaction txTo,
unsigned int  nIn,
int  nHashType 
)

Definition at line 966 of file script.cpp.