congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
KeyAddress.isLong
Code IndexAdd Tabnine to your IDE (free)

How to use
isLong
method
in
com.icodici.crypto.KeyAddress

Best Java code snippets using com.icodici.crypto.KeyAddress.isLong (Showing top 6 results out of 315)

origin: UniversaBlockchain/universa

public UnsRecord(List<KeyAddress> addresses) {
  if (addresses.size() > 2)
    throw new IllegalArgumentException("Addresses list should not be contains more 2 addresses");
  if ((addresses.size() == 2) && addresses.get(0).isLong() == addresses.get(1).isLong())
    throw new IllegalArgumentException("Addresses list may be contains only one short and one long addresses");
  unsAddresses.addAll(addresses);
}
origin: UniversaBlockchain/universa

@Override
public final boolean isMatchingKeyAddress(KeyAddress other) {
  return other.isLong() ?
      getLongAddress().isMatchingKeyAddress(other) : getShortAddress().isMatchingKeyAddress(other);
}
origin: UniversaBlockchain/universa

public NNameRecord(@NonNull UnsName unsName, @NonNull ZonedDateTime expiresAt) {
  name = unsName.getUnsName();
  nameReduced = unsName.getUnsReducedName();
  description = unsName.getUnsDescription();
  url = unsName.getUnsURL();
  this.expiresAt = expiresAt;
  unsName.getUnsRecords().forEach(unsRecord -> {
    String longAddress = null;
    String shortAddress = null;
    for (KeyAddress keyAddress : unsRecord.getAddresses()) {
      if (keyAddress.isLong())
        longAddress = keyAddress.toString();
      else
        shortAddress = keyAddress.toString();
    }
    entries.add(new NNameRecordEntry(unsRecord.getOrigin(), shortAddress, longAddress));
  });
}
origin: UniversaBlockchain/universa

  addError(Errors.FAILED_CHECK, NAMES_FIELD_NAME, "name " + n.getUnsName() + ": Addresses list should not be contains more 2 addresses");
if ((unsRecord.getAddresses().size() == 2) && unsRecord.getAddresses().get(0).isLong() == unsRecord.getAddresses().get(1).isLong())
  addError(Errors.FAILED_CHECK, NAMES_FIELD_NAME, "name " + n.getUnsName() + ": Addresses list may only contain one short and one long addresses");
origin: UniversaBlockchain/universa

String shortAddress = null;
for(KeyAddress keyAddress : getAddresses()) {
  if(keyAddress.isLong())
    longAddress = keyAddress.toString();
  else
origin: UniversaBlockchain/universa

KeyAddress long1 = unsRecord.getAddresses().get(0).isLong() ? unsRecord.getAddresses().get(0) : unsRecord.getAddresses().get(1);
KeyAddress long3 = unsRecord3.getAddresses().get(0).isLong() ? unsRecord3.getAddresses().get(0) : unsRecord3.getAddresses().get(1);
com.icodici.cryptoKeyAddressisLong

Popular methods of KeyAddress

  • <init>
    Unpack an address. After construction, use #getTypeMark() and #isMatchingKey(AbstractKey) methods to
  • toString
    Get the packed string representaion. Uses Safe58 to encode data provided by the #getPacked()
  • isMatchingKey
    Check that the key matches this address, e.g. has of the same type and the digest of its components
  • getPacked
  • isMatchingKeyAddress
    Check that the address matches key information. It DOES NOT check the typeMark #getTypeMark()! If th
  • equals
  • getBiAdapter
  • getTypeMark
  • mask
    Each supported key has a mask that represents its type. The key that has no known mask can't be proc

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now