We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toId(hdkey)
As per dashpay/dips#134 (comment).
DashHd.toIdBytes = async function (hdkey) { let xpubBytes = await DashHd.toXPubBytes(hdkey); let hashBytes = await crypto.subtle.digest("SHA-256", xpubBytes) let idBytes = hashBytes.slice(0, 8); return idBytes; } let hdkey = await DashHd.fromXKey(xkey); let idBytes = DashHd.toIdBytes(hdkey); let id = bytesToBase64Url(idBytes); let idBase32Crock = base32crockford.encode(idBytes); let idHex = DashKeys.utils.bytesToHex(idBytes); let idInt64 = BigInt(`0x${idHex}`);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As per dashpay/dips#134 (comment).
The text was updated successfully, but these errors were encountered: