Signature
in package
implements
BinarySerializableInterface
Signature is a class for handling and representing Ethereum signatures.
Tags
Table of Contents
Interfaces
Properties
Methods
- fromBin() : static
- Instantiates signature from binary data. Required order of signature is `r`, `s`, `v`
- fromHex() : static
- Instantiates signature from hex representation. Required order of signature is `r`, `s`, `v`
- toBin() : string
- Converts the signature to a binary string. The output has a constant length of 33 bytes, ordered 'r', 's', and 'v'.
- toHex() : string
- 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.
Properties
$r
public
OOGmp
$r
$s
public
OOGmp
$s
$v
public
OOGmp
$v
Methods
fromBin()
Instantiates signature from binary data. Required order of signature is `r`, `s`, `v`
public
static fromBin(string $bin) : static
Parameters
- $bin : string
-
Binary blob of signature
Return values
static —Signature object
fromHex()
Instantiates signature from hex representation. Required order of signature is `r`, `s`, `v`
public
static fromHex(string $hex) : static
Parameters
- $hex : string
-
Hex-encoded signature
Tags
Return values
static —Signature object
toBin()
Converts the signature to a binary string. The output has a constant length of 33 bytes, ordered 'r', 's', and 'v'.
public
toBin() : string
Return values
string —The signature as a binary blob string.
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.
public
toHex() : string
Return values
string —The signature as a hexadecimal string.