Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix signing method signatures in README #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Takes a serialized keystore in an old format and a password. The callback takes

## `signing` Function definitions

### `signing.signTx(keystore, pwDerivedKey, rawTx, signingAddress, hdPathString)`
### `signing.signTx(keystore, pwDerivedKey, rawTx, signingAddress)`

Signs a transaction with the private key corresponding to `signingAddress`.

Expand All @@ -179,13 +179,12 @@ Signs a transaction with the private key corresponding to `signingAddress`.
* `pwDerivedKey`: the users password derived key (Uint8Array)
* `rawTx`: Hex-string defining an RLP-encoded raw transaction.
* `signingAddress`: hex-string defining the address to send the transaction from.
* `hdPathString`: (Optional) A path at which to create the encryption keys.

#### Return value

Hex-string corresponding to the RLP-encoded raw transaction.

### `signing.signMsg(keystore, pwDerivedKey, rawMsg, signingAddress, hdPathString)`
### `signing.signMsg(keystore, pwDerivedKey, rawMsg, signingAddress)`

Creates and signs a sha3 hash of a message with the private key corresponding to `signingAddress`.

Expand All @@ -195,13 +194,12 @@ Creates and signs a sha3 hash of a message with the private key corresponding to
* `pwDerivedKey`: the users password derived key (Uint8Array)
* `rawMsg`: Message to be signed
* `signingAddress`: hex-string defining the address corresponding to the signing private key.
* `hdPathString`: (Optional) A path at which to create the encryption keys.

#### Return value

Signed hash as signature object with v, r and s values.

### `signing.signMsgHash(keystore, pwDerivedKey, msgHash, signingAddress, hdPathString)`
### `signing.signMsgHash(keystore, pwDerivedKey, msgHash, signingAddress)`

Signs a sha3 message hash with the private key corresponding to `signingAddress`.

Expand All @@ -211,7 +209,6 @@ Signs a sha3 message hash with the private key corresponding to `signingAddress`
* `pwDerivedKey`: the users password derived key (Uint8Array)
* `msgHash`: SHA3 hash to be signed
* `signingAddress`: hex-string defining the address corresponding to the signing private key.
* `hdPathString`: (Optional) A path at which to create the encryption keys.

#### Return value

Expand Down