You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function toPublic() {
if (public_key) {
// cache
// S L O W in the browser
return public_key
}
const Q = secp256k1.G.multiply(d);
return public_key = PublicKey.fromPoint(Q);
}
Revised
function toPublic(pubkey_prefix = 'EOS') {
if (public_key) {
// cache
// S L O W in the browser
return public_key
}
const Q = secp256k1.G.multiply(d);
return public_key = PublicKey.fromPoint(Q, pubkey_prefix );
}
The text was updated successfully, but these errors were encountered:
cppfuns
changed the title
Can the toPublic method add an XX parameter for user-defined use?
Can the toPublic method add an pubkey_prefix parameter for user-defined use?
Jun 14, 2019
eosjs-ecc/src/key_private.js
Line 62 in 2063257
Original edition
Revised
https://www.bcskill.com/index.php/archives/700.html
The text was updated successfully, but these errors were encountered: