src/main/java/com/hedera/hashgraph/identity/hcs/HcsIdentityNetwork.java
/**
   * Generates a new DID and it's root key.
   *
   * @param withTid Indicates if DID topic ID should be added to the DID as <i>tid</i> parameter.
   * @return Generated {@link HcsDid} with it's private DID root key.
   */
Generates a new DID and it's root key.

@param withTid Indicates if DID topic ID should be added to the DID as tid parameter.
@return Generated  HcsDid with it's private DID root key.
Generates a new DID and it ' s root key . @param withTid Indicates if DID topic ID should be added to the DID as tid parameter . @return Generated HcsDid with it ' s private DID root key .
public HcsDid generateDid(final boolean withTid) {
    PrivateKey privateKey = HcsDid.generateDidRootKey();
    TopicId tid = withTid ? getDidTopicId() : null;
    return new HcsDid(getNetwork(), privateKey, addressBook.getFileId(), tid);
  }
public HcsDid generateDid ( final boolean withTid ) { PrivateKey privateKey = HcsDid . generateDidRootKey ( ) ; TopicId tid = withTid ? getDidTopicId ( ) : null ; return new HcsDid ( getNetwork ( ) , privateKey , addressBook . getFileId ( ) , tid ) ; }
Generates a new DID and it's root key.
Generates a new DID and it ' s root key .