The input that is checked for being truthy.
Converts a Buffer
or Array
to JSON.
(Buffer|Array)
(Array|String|null)
Converts a Buffer
into a 0x
-prefixed hex String
.
Buffer
object to convert
Converts a Buffer
to a Number
.
Buffer
object to convert
Returns the ECDSA signature of a message hash.
Checks if the public key satisfies the rules of the curve secp256k1 and the requirements of Ethereum.
The two points of an uncompressed key, unless sanitize is enabled
Accept public keys in other formats
Returns the ethereum address of a given private key.
A private key must be 256 bits wide
Returns the ethereum public key of a given private key.
A private key must be 256 bits wide
Attempts to turn a value into a Buffer
.
Inputs supported: Buffer
, String
(hex-prefixed), Number
, null/undefined, BN
and other objects
with a toArray()
or toBuffer()
method.
the value
Convert signature format of the eth_sign
RPC method to signature parameters
NOTE: all because of a bug in geth: https://github.com/ethereum/go-ethereum/issues/2053
Creates SHA-3 hash of the RLP encoded version of the input.
The input data
Removes '0x' from a given String
if present
the string value
the string without 0x prefix
Trims leading zeros from a Buffer
.
(Buffer)
(Buffer)
Returns a buffer filled with 0s.
the number of bytes the buffer should be
Generated using TypeDoc
An alias of ok.