forked from Qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
304 B
11 lines
304 B
import publicKeyToAddress from './publicKeyToAddress' |
|
import Base58 from '../deps/Base58.js' |
|
|
|
|
|
export const base58PublicKeyToAddress = (base58pubkey, qora = false) => { |
|
const decodePubKey = Base58.decode(base58pubkey) |
|
|
|
const address = publicKeyToAddress(decodePubKey, qora) |
|
|
|
return address |
|
}
|
|
|