Ethereum taint tracker.
- Source:
Classes
Methods
(async, inner) closeFile(fd) → {undefined}
Close file.
Parameters:
| Name | Type | Description |
|---|---|---|
fd |
File descriptor. |
- Source:
Returns:
- Type
- undefined
(async, inner) createDirectory(dirPath) → {undefined}
Create directory and all parent directories.
Parameters:
| Name | Type | Description |
|---|---|---|
dirPath |
string | Path to directory. |
- Source:
Returns:
- Type
- undefined
(async, inner) createEmptyFile(filePath) → {undefined}
Create empty file.
Parameters:
| Name | Type | Description |
|---|---|---|
filePath |
string | Path to file. |
- Source:
Returns:
- Type
- undefined
(async, inner) deleteTraced(sourceHex, startBlock, addressHex) → {undefined}
Delete address traced.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceHex |
string | Hex representation of source address. |
startBlock |
number | Start block of tainting. |
addressHex |
string | Hex representation of address needing new tracing. |
- Source:
- To Do:
-
- Improve efficiency of this procedure.
Returns:
- Type
- undefined
(async, inner) initializeFile(filePath, data) → {undefined}
Initialize file.
Parameters:
| Name | Type | Description |
|---|---|---|
filePath |
string | Path to file. |
data |
string | Initial data. |
- Source:
Returns:
- Type
- undefined
(async, inner) initializeSave(sourceHex, startBlock) → {undefined}
Initialize save.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceHex |
string | Hex representation of taint source address. |
startBlock |
number | Start block of tainting. |
- Source:
Returns:
- Type
- undefined
(async, inner) openFile(filePath, mode)
Open file.
Parameters:
| Name | Type | Description |
|---|---|---|
filePath |
string | Path to file. |
mode |
string | File mode. |
- Source:
Returns:
File descriptor.
(async, inner) processTransaction()
Process a transaction.
- Source:
(async, inner) readFile(filePath) → {string}
Read file.
Parameters:
| Name | Type | Description |
|---|---|---|
filePath |
string | Path to file. |
- Source:
Returns:
File data.
- Type
- string
(async, inner) recordTainted(sourceHex, sourceStartBlock, addressHex, startBlock) → {undefined}
Record address tainted.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceHex |
string | Hex representation of source address. |
sourceStartBlock |
number | Start block of source tainting. |
addressHex |
string | Hex representation of tainted address. |
startBlock |
number | Start block of tainting. |
- Source:
Returns:
- Type
- undefined
(async, inner) recordTraced(sourceHex, startBlock, addressHex) → {undefined}
Record address traced.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceHex |
string | Hex representation of source address. |
startBlock |
number | Start block of tainting. |
addressHex |
string | Hex representation of traced address. |
- Source:
Returns:
- Type
- undefined
(async, inner) saveExists(sourceHex, startBlock) → {boolean}
Check whether save exists.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceHex |
string | Hex representation of taint source address. |
startBlock |
number | Start block of tainting. |
- Source:
Returns:
Whether save exists.
- Type
- boolean
(async, inner) writeFile(filePath, data) → {undefined}
Write file.
Parameters:
| Name | Type | Description |
|---|---|---|
filePath |
string | Path to file. |
data |
string | File data. |
- Source:
Returns:
- Type
- undefined