Module Import alias ImportFrom alias alias identifier alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias identifier Assign NameStore TupleLoad Num Num Num Num Num Num FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareGt BinOpAdd NameLoad NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad Return BinOpAdd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num Call NameLoad BinOpMod Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num Call NameLoad BinOpMod Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore ListLoad Call NameLoad Num Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest pycoin.ecdsa generator_secp256k1 sign ecdsa_sign verify ecdsa_verify pycoin.encoding bytes_from_int to_bytes_32 pycoin.key Key pycoin.serialize b2h b2h_rev pycoin.tx Tx TxIn TxOut pycoin.tx.Tx SIGHASH_ALL SIGHASH_ANYONECANPAY SIGHASH_SINGLE pycoin.tx.TxOut standard_tx_out_script pycoin.tx.script.der sigdecode_der sigencode_der pycoin.tx.script.tools compile pycoin_compile N/A PRIV_KEYS N/A 2330949616242593315303241053456316633827293588958882755297900732239663851861 4437411780076344925846479906614060621668407514498402815534040340772719979673 14311886404724799688521454580288220586308410691395501373612453626821267193196 16404731722033649474165521611800542240555275746052963990137782680023514762282 92715304942310420502826004911529506622922082818576946681102234225452853924813 103235678552410630318322729483874198805317322052500844759252733409163632402845 sigcheck N/A N/A a_key a_hash_for_sig a_sig N/A N/A N/A 
    Returns True if a_key was used to generate a_sig from a_hash_for_sig;
    False otherwise.
     N/A N/A r s N/A sigdecode_der a_sig N/A N/A ecdsa_verify generator_secp256k1 N/A N/A a_key public_pair a_hash_for_sig N/A r s N/A sigmake N/A N/A a_key a_hash_for_sig a_sig_type N/A SIGHASH_ALL N/A N/A 
    Signs a_hash_for_sig with a_key and returns a DER-encoded signature
    with a_sig_type appended.
     N/A order N/A N/A generator_secp256k1 order N/A N/A r s N/A ecdsa_sign generator_secp256k1 N/A N/A a_key secret_exponent a_hash_for_sig N/A N/A N/A s s order N/A N/A s N/A order s N/A N/A N/A sigencode_der r s N/A bytes_from_int a_sig_type N/A SighashSingleTest N/A N/A unittest TestCase N/A test_sighash_single_mainnet N/A N/A self N/A N/A N/A N/A N/A self _test_sighash_single BTC N/A test_sighash_single_testnet3 N/A N/A self N/A N/A N/A N/A N/A self _test_sighash_single XTN N/A _test_sighash_single N/A N/A self netcode N/A N/A N/A k0 N/A Key secret_exponent N/A PRIV_KEYS N/A 0 is_compressed True netcode netcode N/A k1 N/A Key secret_exponent N/A PRIV_KEYS N/A 1 is_compressed True netcode netcode N/A k2 N/A Key secret_exponent N/A PRIV_KEYS N/A 2 is_compressed True netcode netcode N/A k3 N/A Key secret_exponent N/A PRIV_KEYS N/A 3 is_compressed True netcode netcode N/A k4 N/A Key secret_exponent N/A PRIV_KEYS N/A 4 is_compressed True netcode netcode N/A k5 N/A Key secret_exponent N/A PRIV_KEYS N/A 5 is_compressed True netcode netcode N/A coinbase_tx N/A N/A Tx coinbase_tx N/A N/A k0 sec 500000000 N/A N/A N/A N/A coinbase_tx txs_out append N/A TxOut 1000000000 N/A pycoin_compile N/A %s OP_CHECKSIG N/A b2h N/A N/A k1 sec N/A N/A N/A N/A coinbase_tx txs_out append N/A TxOut 1000000000 N/A pycoin_compile N/A %s OP_CHECKSIG N/A b2h N/A N/A k2 sec N/A N/A N/A self assertEqual 2acbe1006f7168bad538b477f7844e53de3a31ffddfcfc4c6625276dd714155a N/A b2h_rev N/A N/A coinbase_tx hash N/A txs_in N/A N/A TxIn N/A N/A coinbase_tx hash 0 N/A TxIn N/A N/A coinbase_tx hash 1 N/A TxIn N/A N/A coinbase_tx hash 2 N/A txs_out N/A N/A TxOut 900000000 N/A standard_tx_out_script N/A N/A k3 address N/A TxOut 800000000 N/A standard_tx_out_script N/A N/A k4 address N/A TxOut 800000000 N/A standard_tx_out_script N/A N/A k5 address N/A tx N/A Tx 1 txs_in txs_out N/A N/A N/A tx set_unspents N/A coinbase_tx txs_out N/A N/A N/A self assertEqual 791b98ef0a3ac87584fe273bc65abd89821569fd7c83538ac0625a8ca85ba587 N/A b2h_rev N/A N/A tx hash N/A sig_type SIGHASH_SINGLE N/A sig_hash N/A N/A tx signature_hash N/A N/A N/A coinbase_tx txs_out N/A 0 script 0 sig_type N/A N/A N/A self assertEqual cc52d785a3b4133504d1af9e60cd71ca422609cb41df3a08bbb466b2a98a885e N/A b2h N/A to_bytes_32 sig_hash N/A sig N/A sigmake k0 sig_hash sig_type N/A N/A N/A self assertTrue N/A sigcheck k0 sig_hash N/A sig N/A -1 N/A N/A N/A N/A tx txs_in N/A 0 script N/A pycoin_compile N/A b2h sig N/A N/A N/A self assertTrue N/A N/A tx is_signature_ok 0 N/A sig_hash N/A N/A tx signature_hash N/A N/A N/A coinbase_tx txs_out N/A 1 script 1 sig_type N/A N/A N/A self assertEqual 93bb883d70fccfba9b8aa2028567aca8357937c65af7f6f5ccc6993fd7735fb7 N/A b2h N/A to_bytes_32 sig_hash N/A sig N/A sigmake k1 sig_hash sig_type N/A N/A N/A self assertTrue N/A sigcheck k1 sig_hash N/A sig N/A -1 N/A N/A N/A N/A tx txs_in N/A 1 script N/A pycoin_compile N/A b2h sig N/A N/A N/A self assertTrue N/A N/A tx is_signature_ok 1 N/A sig_hash N/A N/A tx signature_hash N/A N/A N/A coinbase_tx txs_out N/A 2 script 2 sig_type N/A N/A N/A self assertEqual 53ef7f67c3541bffcf4e0d06c003c6014e2aa1fb38ff33240b3e1c1f3f8e2a35 N/A b2h N/A to_bytes_32 sig_hash N/A sig N/A sigmake k2 sig_hash sig_type N/A N/A N/A self assertTrue N/A sigcheck k2 sig_hash N/A sig N/A -1 N/A N/A N/A N/A tx txs_in N/A 2 script N/A pycoin_compile N/A b2h sig N/A N/A N/A self assertTrue N/A N/A tx is_signature_ok 2 N/A sig_type N/A SIGHASH_SINGLE SIGHASH_ANYONECANPAY N/A sig_hash N/A N/A tx signature_hash N/A N/A N/A coinbase_tx txs_out N/A 0 script 0 sig_type N/A N/A N/A self assertEqual 2003393d246a7f136692ce7ab819c6eadc54ffea38eb4377ac75d7d461144e75 N/A b2h N/A to_bytes_32 sig_hash N/A sig N/A sigmake k0 sig_hash sig_type N/A N/A N/A self assertTrue N/A sigcheck k0 sig_hash N/A sig N/A -1 N/A N/A N/A N/A tx txs_in N/A 0 script N/A pycoin_compile N/A b2h sig N/A N/A N/A self assertTrue N/A N/A tx is_signature_ok 0 N/A sig_hash N/A N/A tx signature_hash N/A N/A N/A coinbase_tx txs_out N/A 1 script 1 sig_type N/A N/A N/A self assertEqual e3f469ac88e9f35e8eff0bd8ad4ad3bf899c80eb7645947d60860de4a08a35df N/A b2h N/A to_bytes_32 sig_hash N/A sig N/A sigmake k1 sig_hash sig_type N/A N/A N/A self assertTrue N/A sigcheck k1 sig_hash N/A sig N/A -1 N/A N/A N/A N/A tx txs_in N/A 1 script N/A pycoin_compile N/A b2h sig N/A N/A N/A self assertTrue N/A N/A tx is_signature_ok 1 N/A sig_hash N/A N/A tx signature_hash N/A N/A N/A coinbase_tx txs_out N/A 2 script 2 sig_type N/A N/A N/A self assertEqual bacd7c3ab79cad71807312677c1788ad9565bf3c00ab9a153d206494fb8b7e6a N/A b2h N/A to_bytes_32 sig_hash N/A sig N/A sigmake k2 sig_hash sig_type N/A N/A N/A self assertTrue N/A sigcheck k2 sig_hash N/A sig N/A -1 N/A N/A N/A N/A tx txs_in N/A 2 script N/A pycoin_compile N/A b2h sig N/A N/A N/A self assertTrue N/A N/A tx is_signature_ok 2 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main