Skip to content

Commit

Permalink
Specify that the _given_ public keys are invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
dchest committed Dec 21, 2016
1 parent 8251fb2 commit 1d93a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ into a key pair suitable for operations which accept key pairs generated by
`nacl.box.keyPair`. This function is a combination of `convertPublicKey`
and `convertSecretKey`.

Returns `null` if the public key in the key pair is not a valid
Returns `null` if the public key in the given key pair is not a valid
Ed25519 public key.

### ed2curve.convertPublicKey(edPublicKey) -> curvePublicKey | null

Converts a 32-byte Ed25519 public key into a 32-byte Curve25519 public key
and returns it.

Returns `null` if the public key in not a valid Ed25519 public key.
Returns `null` if the given public key in not a valid Ed25519 public key.

### ed2curve.convertSecretKey(edSecretKey) -> curveSecretKey

Expand Down

0 comments on commit 1d93a35

Please sign in to comment.