Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util-crypto/mod.ts>addressEq

Package publishing for deno.land/x/polkadot
Go to Latest
function addressEq
import { addressEq } from "https://deno.land/x/polkadot@0.2.25/util-crypto/mod.ts";

Examples

import { u8aEq } from 'https://deno.land/x/polkadot@0.2.25/util/mod.ts';

u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true

Parameters

a: HexString | string | Uint8Array
b: HexString | string | Uint8Array

Returns

boolean