mirror of https://github.com/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.
12 lines
304 B
12 lines
304 B
3 years ago
|
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
|
||
|
}
|