Created
February 25, 2021 20:01
-
-
Save bshambaugh/424715adc61c0928d5366e741d7da652 to your computer and use it in GitHub Desktop.
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
const multibase = require('multibase') | |
const toString = require('uint8arrays/to-string') | |
const didKeyBase58btc = 'zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme' | |
const didKey = multibase.decode(didKeyBase58btc) | |
console.log('did key from spec decoded an as hex: '+toString(didKey,'base16')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zQ3shokFTS3brHcDQrn82RUDfCZESWL1ZdCEJwekUDPQiYBme to
e70103874c15c7fda20e539c6e5ba573c139884c351188799f5458b4b41f7924f235cd
from https://w3c-ccg.github.io/did-method-key/#secp256k1