-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
42 lines (28 loc) · 1.03 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Type definitions for fabric-shim-crypto-crypto 1.1.1
// Project: https://github.com/hyperledger/fabric-chaincode-node
// Definitions by: TheLedger <https://github.com/wearetheledger>
/// <reference types="node" />
/* tslint:disable */
declare module 'fabric-shim-crypto' {
namespace ShimCrypto {
/*~ Write your module's methods and properties in this class */
/*~ If you want to expose types from your module as well, you can
*~ place them in this block.
*/
export class ShimCryptoClass {
constructor(stub: Object);
ENCRYPT_KEY: string;
SIGN_KEY: string;
INIT_VECTOR: string;
encrypt(plaintext: string): Buffer;
decrypt(ciphertext: string): Buffer;
sign(message: string): Buffer;
verify(signature: Buffer, message: string): ShimCrypto.VerifyResponse;
}
export interface VerifyResponse {
ok: boolean;
error?: Error;
}
}
export = ShimCrypto;
}