initial commit
This commit is contained in:
16
types/crypto.d.ts
vendored
Normal file
16
types/crypto.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { AESKey } from '@daotl/cryptico';
|
||||
import { RSAKey } from '@daotl/cryptico';
|
||||
export declare function aesEncrypt(data: string, aesKey: AESKey): string;
|
||||
export declare function rsaEncrypt(data: string, rsaKey: {
|
||||
n: string;
|
||||
e1: string;
|
||||
}): string;
|
||||
export declare function loadRSAKey(rsaKey: string): RSAKey;
|
||||
export declare function encryptReq(reqContent: {
|
||||
contractID: string;
|
||||
}, pubKey: RSAKey): {
|
||||
action: string | null;
|
||||
contractID: string;
|
||||
arg: string;
|
||||
requester: string;
|
||||
};
|
||||
Reference in New Issue
Block a user