2023-03-03 18:25:07 -07:00
|
|
|
import { SigningKey } from "../crypto/index.js";
|
|
|
|
import type { SignatureLike } from "../crypto/index.js";
|
|
|
|
import type { BytesLike } from "../utils/index.js";
|
|
|
|
/**
|
|
|
|
* Returns the address for the %%key%%.
|
|
|
|
*
|
|
|
|
* The key may be any standard form of public key or a private key.
|
|
|
|
*/
|
|
|
|
export declare function computeAddress(key: string | SigningKey): string;
|
|
|
|
/**
|
|
|
|
* Returns the recovered address for the private key that was
|
|
|
|
* used to sign %%digest%% that resulted in %%signature%%.
|
|
|
|
*/
|
|
|
|
export declare function recoverAddress(digest: BytesLike, signature: SignatureLike): string;
|
2023-04-27 21:19:55 +09:00
|
|
|
//# sourceMappingURL=address.d.ts.map
|