diff --git a/html/js/cn_util.js b/html/js/cn_util.js index b164534..eb41587 100644 --- a/html/js/cn_util.js +++ b/html/js/cn_util.js @@ -442,7 +442,14 @@ var cnUtil = (function(initConfig) { first = seed; //only input reduced seeds or this will not give you the result you want } keys.spend = this.generate_keys(first); - var second = this.cn_fast_hash(first); + + var second; + if (seed.length !== 64) { + second = this.cn_fast_hash(first); + } else { + second = this.cn_fast_hash(keys.spend.sec); + } + keys.view = this.generate_keys(second); keys.public_addr = this.pubkeys_to_string(keys.spend.pub, keys.view.pub); return keys;