def decodescript_script_sig(self):
    signature = '304502207fa7a6d1e0ee81132a269ad84e68d695483745cde8b541e3bf630749894e342a022100c1f7ab20e13e22fb95281a870f3dcf38d782e53023ee313d741ad0cfbc0c509001'
    push_signature = ('48' + signature)
    public_key = '03b0da749730dc9b4b1f4a14d6902877a92541f5368778853d9c4a0cb7802dcfb2'
    push_public_key = ('21' + public_key)
    rpc_result = self.nodes[0].decodescript(push_signature)
    assert_equal(signature, rpc_result['asm'])
    rpc_result = self.nodes[0].decodescript((push_signature + push_public_key))
    assert_equal(((signature + ' ') + public_key), rpc_result['asm'])
    rpc_result = self.nodes[0].decodescript((('00' + push_signature) + push_signature))
    assert_equal(((('0 ' + signature) + ' ') + signature), rpc_result['asm'])
    rpc_result = self.nodes[0].decodescript('5100')
    assert_equal('1 0', rpc_result['asm'])
def decodescript_script_sig(self):
    signature = '304502207fa7a6d1e0ee81132a269ad84e68d695483745cde8b541e3bf630749894e342a022100c1f7ab20e13e22fb95281a870f3dcf38d782e53023ee313d741ad0cfbc0c509001'
    push_signature = ('48' + signature)
    public_key = '03b0da749730dc9b4b1f4a14d6902877a92541f5368778853d9c4a0cb7802dcfb2'
    push_public_key = ('21' + public_key)
    rpc_result = self.nodes[0].decodescript(push_signature)
    assert_equal(signature, rpc_result['asm'])
    rpc_result = self.nodes[0].decodescript((push_signature + push_public_key))
    assert_equal(((signature + ' ') + public_key), rpc_result['asm'])
    rpc_result = self.nodes[0].decodescript((('00' + push_signature) + push_signature))
    assert_equal(((('0 ' + signature) + ' ') + signature), rpc_result['asm'])
    rpc_result = self.nodes[0].decodescript('5100')
    assert_equal('1 0', rpc_result['asm'])