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
240 B
11 lines
240 B
3 years ago
|
import Base58 from '../deps/Base58.js'
|
||
|
|
||
|
export const validateAddress = (address) => {
|
||
2 years ago
|
const decodePubKey = Base58.decode(address)
|
||
3 years ago
|
|
||
2 years ago
|
if (!(decodePubKey instanceof Uint8Array && decodePubKey.length == 25)) {
|
||
|
return false
|
||
|
}
|
||
|
return true
|
||
3 years ago
|
}
|