UNPKG

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