correct create_address in js

use_xmregcore
moneroexamples 5 years ago
parent 9de3a4a116
commit 8630bbbef4

@ -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;

Loading…
Cancel
Save