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
pretty sure credit goes to @Envoy-VC for this snippet! (correct me if I'm wrong please)
// Get user_id from user_keyimport{sha512}from'@noble/hashes/sha512';constuserKey='your_base58_encoded_key'constpublicKey=base58.decode(userKey).subarray(32);consthash=sha512.create().update(publicKey).digest();constuserId=base58.encode(hash);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
pretty sure credit goes to @Envoy-VC for this snippet! (correct me if I'm wrong please)
Beta Was this translation helpful? Give feedback.
All reactions