Ether Binder
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
|
Public Member Functions | |
toHex () | |
toBin () | |
Static Public Member Functions | |
static | fromHex (string $hex) |
static | fromBin (string $bin) |
Public Attributes | |
OOGmp | $v |
OOGmp | $r |
OOGmp | $s |
Signature is a class for handling and representing Ethereum signatures.
|
static |
Instantiates signature from binary data. Required order of signature is r
, s
, v
string | $bin | Binary blob of signature |
Implements M8B\EtherBinder\Common\BinarySerializableInterface.
|
static |
Instantiates signature from hex representation. Required order of signature is r
, s
, v
string | $hex | Hex-encoded signature |
InvalidHexException |
Implements M8B\EtherBinder\Common\BinarySerializableInterface.
M8B\EtherBinder\Crypto\Signature::toBin | ( | ) |
Converts the signature to a binary string. The output has a constant length of 33 bytes, ordered 'r', 's', and 'v'.
Implements M8B\EtherBinder\Common\BinarySerializableInterface.
M8B\EtherBinder\Crypto\Signature::toHex | ( | ) |
Converts the signature to a hexadecimal string. The output has a constant length of 66 nibbles, ordered 'r', 's', and 'v'. The output is NOT '0x' prefixed.
Implements M8B\EtherBinder\Common\BinarySerializableInterface.