UNPKG

@metamask/design-system-react

Version:
24 lines 1.07 kB
import { KnownCaipNamespace } from "@metamask/utils"; /** * Generates a numeric seed for Ethereum (eip155) addresses. * * @param address - The Ethereum address to generate a seed from * @returns A numeric seed for jazzicon generation */ export declare function generateSeedEthereum(address: string): number; /** * Generates a byte-array seed for non-Ethereum addresses (Solana, Bitcoin, etc.). * * @param address - The address to generate a byte array seed from * @returns An array of numbers representing the bytes of the address */ export declare function generateSeedNonEthereum(address: string): number[]; /** * Dynamically checks if the address is Bitcoin or Solana; otherwise default to Ethereum. * Returns a Promise that resolves to one of the known CAIP-2 namespaces. * * @param address - The address to determine the CAIP namespace for * @returns A Promise that resolves to a KnownCaipNamespace */ export declare function getCaipNamespaceFromAddress(address: string): Promise<KnownCaipNamespace>; //# sourceMappingURL=Jazzicon.utilities.d.mts.map