UNPKG

540 BTypeScriptView Raw
1import type { HexString } from '@polkadot/util/types';
2/**
3 * @name addressEq
4 * @summary Compares two addresses, either in ss58, Uint8Array or hex format.
5 * @description
6 * For the input values, return true is the underlying public keys do match.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { u8aEq } from '@polkadot/util';
12 *
13 * u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true
14 * ```
15 */
16export declare function addressEq(a: HexString | string | Uint8Array, b: HexString | string | Uint8Array): boolean;