This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="nav navbar-nav"> | |
<li><a href="/" class="active"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li> | |
<li><a th:if="${user != null}" href="cart"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Cart</a></li> | |
<li><a th:if="${user != null}" href="/"><i class="fa fa-truck" aria-hidden="true"></i> Delivery</a></li> | |
<li><a th:if="${user != null}" href="/"><i class="fa fa-user" aria-hidden="true"></i> Account</a></li> | |
<li><a th:if="${user == null}" href="login"><i class="fa fa-sign-in" aria-hidden="true"></i> Login</a></li> | |
<li><a th:if="${user != null}" href="logout"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public DeterministicKey deterministicKey() { | |
final DeterministicSeed seed = | |
new DeterministicSeed(mnemonicCode, null, passphrase, new Date().getTime()); | |
final DeterministicKeyChain chain = DeterministicKeyChain.builder().seed(seed).build(); | |
final List<ChildNumber> keyPath = HDUtils.parsePath("M/44H/60H/0H/0/0"); | |
return chain.getKeyByPath(keyPath, true); | |
} |