FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitcoin-php/src/Script/ScriptInterface.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
/
Script
/
ScriptInterface.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
79 lines (65 loc) · 1.77 KB
Breadcrumbs
bitcoin-php
/
src
/
Script
/
ScriptInterface.php
Copy path
File metadata and controls
79 lines (65 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
declare
(strict_types=
1
);
namespace
BitWasp
\
Bitcoin
\
Script
;
use
BitWasp
\
Bitcoin
\
Script
\
Parser
\
Parser
;
use
BitWasp
\
Bitcoin
\
SerializableInterface
;
use
BitWasp
\
Buffertools
\
BufferInterface
;
interface
ScriptInterface
extends
SerializableInterface
{
/**
* @return BufferInterface
*/
public
function
getScriptHash
():
BufferInterface
;
/**
* @return BufferInterface
*/
public
function
getWitnessScriptHash
():
BufferInterface
;
/**
* @return Parser
*/
public
function
getScriptParser
():
Parser
;
/**
* @return Opcodes
*/
public
function
getOpcodes
():
Opcodes
;
/**
* Returns boolean indicating whether script
* was push only. If true, $ops is populated
* with the contained buffers
* @param array $ops
* @return bool
*/
public
function
isPushOnly
(
array
&
$
ops
=
null
):
bool
;
/**
* @param WitnessProgram|null $witness
* @return bool
*/
public
function
isWitness
(&
$
witness
):
bool
;
/**
* @param BufferInterface $scriptHash
* @return bool
*/
public
function
isP2SH
(&
$
scriptHash
):
bool
;
/**
* @param bool $accurate
* @return int
*/
public
function
countSigOps
(
bool
$
accurate
=
true
):
int
;
/**
* @param ScriptInterface $scriptSig
* @return int
*/
public
function
countP2shSigOps
(
ScriptInterface
$
scriptSig
):
int
;
/**
* @param ScriptInterface $scriptSig
* @param ScriptWitnessInterface $witness
* @param int $flags
* @return int
*/
public
function
countWitnessSigOps
(
ScriptInterface
$
scriptSig
,
ScriptWitnessInterface
$
witness
,
int
$
flags
):
int
;
/**
* @param ScriptInterface $script
* @return bool
*/
public
function
equals
(
ScriptInterface
$
script
):
bool
;
}
Back
|
FazBrowse Home
|
New Git URL