1 | <?php |
||
13 | abstract class KeyToScriptDataFactory extends ScriptDataFactory |
||
14 | { |
||
15 | /** |
||
16 | * @var PublicKeySerializerInterface |
||
17 | */ |
||
18 | protected $pubKeySerializer; |
||
19 | |||
20 | /** |
||
21 | * KeyToP2PKScriptFactory constructor. |
||
22 | * @param PublicKeySerializerInterface|null $pubKeySerializer |
||
23 | */ |
||
24 | 29 | public function __construct(PublicKeySerializerInterface $pubKeySerializer = null) |
|
32 | |||
33 | /** |
||
34 | * @param PublicKeyInterface $publicKey |
||
35 | * @return ScriptAndSignData |
||
36 | */ |
||
37 | abstract protected function convertKeyToScriptData(PublicKeyInterface $publicKey); |
||
38 | |||
39 | /** |
||
40 | * @param KeyInterface $key |
||
41 | * @return ScriptAndSignData |
||
42 | */ |
||
43 | 14 | public function convertKey(KeyInterface $key) |
|
52 | } |
||
53 |