UNPKG

614 BTypeScriptView Raw
1import { SigningKey } from "../crypto/index.js";
2import type { SignatureLike } from "../crypto/index.js";
3import type { BytesLike } from "../utils/index.js";
4/**
5 * Returns the address for the %%key%%.
6 *
7 * The key may be any standard form of public key or a private key.
8 */
9export declare function computeAddress(key: string | SigningKey): string;
10/**
11 * Returns the recovered address for the private key that was
12 * used to sign %%digest%% that resulted in %%signature%%.
13 */
14export declare function recoverAddress(digest: BytesLike, signature: SignatureLike): string;
15//# sourceMappingURL=address.d.ts.map
\No newline at end of file