custom hd key derivation addded

This commit is contained in:
OutCast3k
2019-12-25 22:10:55 +00:00
parent 56cb104ea4
commit 5583675390
4 changed files with 64 additions and 16 deletions
+14 -1
View File
@@ -1660,7 +1660,11 @@ $(document).ready(function() {
var html = '';
$("#verifyHDaddress .derived_data table tbody").html("");
for(var i=index_start;i<=index_end;i++){
var derived = hd.derive(i);
if($("#hdpathtype option:selected").val()=='simple'){
var derived = hd.derive(i);
} else {
var derived = hd.derive_path(($("#hdpath input").val().replace(/\/+$/, ""))+'/'+i);
}
html += '<tr>';
html += '<td>'+i+'</td>';
html += '<td><input type="text" class="form-control" value="'+derived.keys.address+'" readonly></td>';
@@ -1673,6 +1677,15 @@ $(document).ready(function() {
}
$("#hdpathtype").change(function(){
if($(this).val()=='simple'){
$("#hdpath").removeClass().addClass("hidden");
} else {
$("#hdpath").removeClass();
}
});
/* sign code */
$("#signBtn").click(function(){