UNPKG

acp-ws

Version:

基于 WebSocket 的智能体通信库,提供智能体身份管理和实时通信功能

19 lines (18 loc) 536 B
export declare function createSignedCertificateAsync(aid?: string): Promise<{ csrPEM: string; prvKeyPEM: string; pubKeyPEM: string; }>; export declare function isPemValid(certPem: string): boolean; export declare function getPublicKeyPem(agentId: string): Promise<{ publicKeyPem: string; certPem: string; }>; /** * 签名函数 */ export declare function signPrivate(nonce: string, privateKey: string): Promise<string>; /** * 预加载 jsrsasign 模块 */ export declare function preloadCrypto(): Promise<void>;