예제 #1
0
 /**
  * Creates an Address from a public key.
  *
  * @param version First byte of network version
  * @param publicKey The public key.
  * @return An address object.
  */
 public static AddressValue fromPublicKey(byte version, @NonNull final NacPublicKey publicKey) {
   return new AddressValue(generateEncoded(version, publicKey.getRaw()));
 }
예제 #2
0
 /**
  * Creates an Address from a public key.
  *
  * @param publicKey The public key.
  * @return An address object.
  */
 public static AddressValue fromPublicKey(@NonNull final NacPublicKey publicKey) {
   return new AddressValue(
       generateEncoded(AppConstants.NETWORK_VERSION.get(), publicKey.getRaw()));
 }