This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d3973a  Fix doc stating that the publicKey should be the secret key
     new 062d76b  Merge pull request #35 from TomLisankie/patch-2
2d3973a is described below

commit 2d3973a2b16a658fcafd9cea2b1557b042755dec
Author: Thomas Lisankie <[email protected]>
AuthorDate: Wed Sep 25 14:44:14 2019 -0400

    Fix doc stating that the publicKey should be the secret key
    
    Some documentation stated that a parameter called publicKey should be the 
secret key
---
 .../src/main/java/org/apache/tuweni/scuttlebutt/Identity.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/Identity.java 
b/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/Identity.java
index ecdc1d3..adf3647 100644
--- a/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/Identity.java
+++ b/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/Identity.java
@@ -105,9 +105,9 @@ public interface Identity {
   }
 
   /**
-   * Creates a new SECP256K1 identity backed by this secret key.
+   * Creates a new SECP256K1 identity backed by this public key.
    *
-   * @param publicKey the secret key of the identity
+   * @param publicKey the public key of the identity
    * @return a new Scuttlebutt identity
    */
   static Identity fromPublicKey(SECP256K1.PublicKey publicKey) {
@@ -115,9 +115,9 @@ public interface Identity {
   }
 
   /**
-   * Creates a new Ed25519 identity backed by this secret key.
+   * Creates a new Ed25519 identity backed by this public key.
    *
-   * @param publicKey the secret key of the identity
+   * @param publicKey the public key of the identity
    * @return a new Scuttlebutt identity
    */
   static Identity fromPublicKey(Signature.PublicKey publicKey) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to