2022-10-20 05:03:32 -04:00
|
|
|
import { SigningKey } from "../crypto/index.js";
|
2022-09-05 16:57:11 -04:00
|
|
|
import type { SignatureLike } from "../crypto/index.js";
|
|
|
|
import type { BytesLike } from "../utils/index.js";
|
2023-01-28 01:53:29 -05:00
|
|
|
/**
|
|
|
|
* Returns the address for the %%key%%.
|
|
|
|
*
|
|
|
|
* The key may be any standard form of public key or a private key.
|
|
|
|
*/
|
2022-10-20 05:03:32 -04:00
|
|
|
export declare function computeAddress(key: string | SigningKey): string;
|
2023-01-28 01:53:29 -05:00
|
|
|
/**
|
|
|
|
* Returns the recovered address for the private key that was
|
|
|
|
* used to sign %%digest%% that resulted in %%signature%%.
|
|
|
|
*/
|
2022-09-05 16:57:11 -04:00
|
|
|
export declare function recoverAddress(digest: BytesLike, signature: SignatureLike): string;
|
|
|
|
//# sourceMappingURL=address.d.ts.map
|