Ejemplo n.º 1
0
 def test_pubkeyhash_from_script(self):
     self.assertEquals(ScriptMutlisig.from_script(self.script1),
                       ScriptMutlisig(2,
                                      [decodehexstr("02547b223d58eb5da7c7690748f70a3bab1509cb7578faac9032399f0b6bce31d6"),
                                       decodehexstr("c47a2dbbfb38f02205a3a72a37c68a8c068fe71a1351516f0f1fe7dd3c7afce38f"),
                                       decodehexstr("9f1de01000000fd45010047304402200983ab9c46fd1194e541c683828bbb92ce9")]))
Ejemplo n.º 2
0
 def test_pubkeyhash_get_script(self):
     self.assertEquals(ScriptMutlisig(2,
                                      [decodehexstr("02547b223d58eb5da7c7690748f70a3bab1509cb7578faac9032399f0b6bce31d6"),
                                       decodehexstr("c47a2dbbfb38f02205a3a72a37c68a8c068fe71a1351516f0f1fe7dd3c7afce38f"),
                                       decodehexstr("9f1de01000000fd45010047304402200983ab9c46fd1194e541c683828bbb92ce9")]).get_script(),
                       self.script1)
Ejemplo n.º 3
0
 def test_pubkeyhash_match(self):
     assert ScriptMutlisig.match(self.script1)