FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitcoin-php/src/Key/KeyToScript/ScriptAndSignData.php at 1.0 · Bit-Wasp/bitcoin-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Bit-Wasp
/
bitcoin-php
Public
Notifications
You must be signed in to change notification settings
Fork
446
Star
1.1k
Code
Issues
67
Pull requests
19
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bitcoin-php
/
src
/
Key
/
KeyToScript
/
ScriptAndSignData.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (50 loc) · 1.2 KB
Breadcrumbs
bitcoin-php
/
src
/
Key
/
KeyToScript
/
ScriptAndSignData.php
Copy path
File metadata and controls
59 lines (50 loc) · 1.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
declare
(strict_types=
1
);
namespace
BitWasp
\
Bitcoin
\
Key
\
KeyToScript
;
use
BitWasp
\
Bitcoin
\
Address
\
Address
;
use
BitWasp
\
Bitcoin
\
Address
\
BaseAddressCreator
;
use
BitWasp
\
Bitcoin
\
Script
\
ScriptInterface
;
use
BitWasp
\
Bitcoin
\
Transaction
\
Factory
\
SignData
;
class
ScriptAndSignData
{
/**
* @var ScriptInterface
*/
private
$
scriptPubKey
;
/**
* @var SignData
*/
private
$
signData
;
/**
* ScriptAndSignData constructor.
* @param ScriptInterface $scriptPubKey
* @param SignData $signData
*/
public
function
__construct
(
ScriptInterface
$
scriptPubKey
,
SignData
$
signData
)
{
$
this
->
scriptPubKey
=
$
scriptPubKey
;
$
this
->
signData
=
$
signData
;
}
/**
* @return ScriptInterface
*/
public
function
getScriptPubKey
():
ScriptInterface
{
return
$
this
->
scriptPubKey
;
}
/**
* @param BaseAddressCreator $creator
* @return Address
*/
public
function
getAddress
(
BaseAddressCreator
$
creator
):
Address
{
return
$
creator
->
fromOutputScript
(
$
this
->
scriptPubKey
);
}
/**
* @return SignData
*/
public
function
getSignData
():
SignData
{
return
$
this
->
signData
;
}
}
Back
|
FazBrowse Home
|
New Git URL