This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs58 from "bs58"; | |
import jssha from "jssha"; | |
const sha256 = str => { | |
const inst = new jssha("SHA-256", "HEX"); | |
inst.update(str); | |
return inst.getHash("HEX"); | |
}; | |
/** |