Merge pull request #7 from BennyTheDev/main
# removed sha256 hashing for sats domains
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -384,6 +384,8 @@
|
||||
|
||||
if ( $( '.file_form' ).style.display == "none" ) {
|
||||
|
||||
files = [];
|
||||
|
||||
let sats_domains = $( '.dns' ).value.split("\n");
|
||||
let sats_domains_cleaned = [];
|
||||
|
||||
@@ -404,8 +406,7 @@
|
||||
|
||||
let mimetype = "text/plain;charset=utf-8";
|
||||
let domain = {"p":"sns","op":"reg","name":sats_domains_cleaned[sats_domain].trim()};
|
||||
let sha256 = await fileToSha256Hex(JSON.stringify( domain ));
|
||||
files.push({name : sats_domains_cleaned[sats_domain].trim(),hex: textToHex( JSON.stringify( domain ) ), mimetype : mimetype, sha256: sha256.replace('0x','')});
|
||||
files.push({name : sats_domains_cleaned[sats_domain].trim(),hex: textToHex( JSON.stringify( domain ) ), mimetype : mimetype, sha256: ''});
|
||||
console.log(domain);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user