diff options
| author | Adam Soltys <[email protected]> | 2015-12-13 00:13:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-12-13 00:13:22 -0800 |
| commit | 365ec75087ebacbab4ed8e969542283079ffb4ae (patch) | |
| tree | c5204117362839ac69c4abad91b0e28692989529 /views | |
| parent | f466c6aa4db08d953df9916fad8ba5d03020e0a0 (diff) | |
| download | coinos-server-365ec75087ebacbab4ed8e969542283079ffb4ae.tar.gz coinos-server-365ec75087ebacbab4ed8e969542283079ffb4ae.zip | |
Detect key type
Diffstat (limited to 'views')
| -rw-r--r-- | views/users/wallet.html | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/views/users/wallet.html b/views/users/wallet.html index 7195f865..e2a1140e 100644 --- a/views/users/wallet.html +++ b/views/users/wallet.html @@ -2,6 +2,7 @@ <script src="/bower/bootstrap3-dialog/dist/js/bootstrap-dialog.min.js"></script> <script src="/bower/jquery-serialize-object/dist/jquery.serialize-object.min.js"></script> <script src="/bower/crypto-js/crypto-js.js"></script> + <script src="/js/bip38.min.js"></script> <script src="/js/bip39.min.js"></script> <script src="/js/wallet.js"></script> {{/yield-scripts}} @@ -39,22 +40,49 @@ <form> <div class="form-group"> - <label for="pubkey">Bitcoin Address or HD Wallet xpub Key:</label> - <textarea id="pubkey" name="pubkey" class="form-control" placeholder="xpub..." rows="3"></textarea> + <div class="input-group" style="width: 100%"> + <label for="new_password">Password:</label> + <input id="new_password" name="new_password" type="password" class="form-control" /> + </div> </div> - <button id="generate" class="btn btn-primary pull-right" type="button"><i class="fa fa-bolt"></i> Generate New HD Wallet</button> - <br class="clear" /> + <div class="form-group has-feedback"> + <div class="input-group" style="width: 100%"> + <label for="pubkey"> + Address or Key: + <button id="types" type="button" class="btn btn-default" title="Supported Key Types" data-toggle="popover" data-placement="right"> + <i class="fa fa-question"></i> + </button> + </label> + <textarea id="pubkey" name="pubkey" class="form-control" rows="3"></textarea> + </div> + </div> <div class="form-group" style="display: none"> - <label for="new_password">Password:</label> - <input id="new_password" name="new_password" type="password" class="form-control" /> + <div class="input-group" style="width: 100%"> + <label for="privkey">Key:</label> + <textarea id="privkey" name="privkey" class="form-control" rows="3"></textarea> + </div> </div> - <div class="form-group"> - <label for="pubkey">Encrypted Private Key:</label> - <textarea id="privkey" name="privkey" class="form-control" placeholder="xpriv..." rows="5"></textarea> + <div class="form-group has-feedback"> + <div class="input-group" style="width: 100%"> + <label for="type">Detected Type:</label> + <select id="type" name="type" class="form-control" disabled> + <option value="unknown">Unknown</option> + <option value="address">Bitcoin Address (starts with 1 or 3)</option> + <option value="private_key">Private Key (starts with 5 or L)</option> + <option value="xpub">HD Wallet pubkey (starts with xpub)</option> + <option value="xprv">HD Wallet private key (starts with xprv)</option> + <option value="aes">AES Encrypted Private Key (starts with U)</option> + <option value="bip38">BIP38 Encrypted Private Key (starts with 6)</option> + <option value="bip39">BIP39 Mnemonic (series of 12-24 english words)</option> + </select> + </div> </div> + <button id="generate" class="btn btn-primary pull-right" type="button"><i class="fa fa-bolt"></i> Generate New HD Wallet</button> + <br class="clear" /> + <input class="btn btn-primary" type="button" value="Save" /> </form> </div> |
