mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-05-30 00:01:04 +00:00
a5542fdd87
- Fixed internal @polkadot references to @pezkuwi - Updated hw-ledger and hw-ledger-transports packages - Updated keyring and networks packages - Version 14.0.7
11 lines
387 B
TypeScript
11 lines
387 B
TypeScript
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { Prefix } from './types.js';
|
|
|
|
import { decodeAddress } from './decode.js';
|
|
|
|
export function validateAddress (encoded?: string | null, ignoreChecksum?: boolean, ss58Format?: Prefix): encoded is string {
|
|
return !!decodeAddress(encoded, ignoreChecksum, ss58Format);
|
|
}
|