Skip to content

Commit

Permalink
Merge pull request #2178 from aalok05/addMissingExports
Browse files Browse the repository at this point in the history
Add missing exports
  • Loading branch information
nivida committed Jan 21, 2019
2 parents 7c641fc + 046c556 commit 0610c89
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 51 deletions.
33 changes: 33 additions & 0 deletions docs/web3-utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1320,3 +1320,36 @@ Example
web3.utils.toTwosComplement('-0x1');
> "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
------------------------------------------------------------------------------

getSignatureParameters
======================

.. code-block:: javascript
web3.utils.getSignatureParameters(string)
Gets the r, s and v values of an ECDSA signature


----------
Parameters
----------

1. ``string`` - ``String``: An ECDSA signature.

-------
Returns
-------

``Object``: Object containing r,s,v values.

-------
Example
-------

.. code-block:: javascript
web3.utils.getSignatureParameters('0x5763ab346198e3e6cc4d53996ccdeca0c941cb6cb70d671d97711c421d3bf7922c77ef244ad40e5262d1721bf9638fb06bab8ed3c43bfaa80d6da0be9bbd33dc1b');
> "{ r: '0x5763ab346198e3e6cc4d53996ccdeca0c941cb6cb70d671d97711c421d3bf792', s: '0x2c77ef244ad40e5262d1721bf9638fb06bab8ed3c43bfaa80d6da0be9bbd33dc', v: 27 }"
Loading

0 comments on commit 0610c89

Please sign in to comment.