Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit ad05430

Browse files
authored
Merge branch '1.x' into 1.x
2 parents bae740f + a25ba79 commit ad05430

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/web3-eth-accounts.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,18 @@ privateKeyToAccount
9898
9999
Creates an account object from a private key.
100100

101+
For more advanced hierarchial address derivation, see
102+
[truffle-hd-awallet-provider](https://github.com/trufflesuite/truffle/tree/develop/packages/hdwallet-provider)
103+
package.
104+
101105
----------
102106
Parameters
103107
----------
104108

105-
1. ``privateKey`` - ``String``: The private key to convert.
106-
1. ``ignoreLength`` - ``Boolean``: If set to true does the ``privateKey`` length not get validated.
109+
1. ``privateKey`` - ``String``: The private key to import. This is 32 bytes of random data.
110+
If you are supplying a hexadecimal number, it must have `0x` prefix in order to be in line
111+
with other Ethereum libraries.
112+
2. ``ignoreLength`` - ``Boolean``: If set to true does the ``privateKey`` length not get validated.
107113

108114
-------
109115
Returns

0 commit comments

Comments
 (0)