钱包SDK
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 签名能力接口
|
||||
* - 提供消息签名功能(常用于登录 / 身份认证)
|
||||
*/
|
||||
|
||||
export interface ISignCap {
|
||||
/**
|
||||
* 签名消息
|
||||
*
|
||||
* @param message 待签名的消息
|
||||
* @param options 可选参数(nonce、防重放字段、是否包含链ID等)
|
||||
* @returns 签名结果
|
||||
*/
|
||||
signMessage(message: string, options?: { nonce?: number; [key: string]: any }): Promise<{ signature: string; fullMessage?: string }>;
|
||||
}
|
||||
Reference in New Issue
Block a user