BCMathService
- Full name:
\StephenHill\BCMathService
- This class implements:
\StephenHill\ServiceInterface
Properties
alphabet
base
Methods
__construct
Constructor
Parameters:
Parameter | Type | Description |
---|---|---|
$alphabet |
string | optional |
encode
Encode a string into base58.
Parameters:
Parameter | Type | Description |
---|---|---|
$string |
string | The string you wish to encode. |
Return Value:
The Base58 encoded string.
decode
Decode base58 into a PHP string.
Parameters:
Parameter | Type | Description |
---|---|---|
$base58 |
string | The base58 encoded string. |
Return Value:
Returns the decoded string.
Automatically generated on 2025-03-18