1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/test/mocks/SecretStore.mock.ts
2018-10-26 13:37:09 +02:00

17 lines
363 B
TypeScript

import SecretStore from "@oceanprotocol/secret-store-client"
export default class SecretStoreMock extends SecretStore {
public async encryptDocument(documentId, document: any) {
return "0x283asdgahd1t371t23h"
}
public async decryptDocument(documentId, encryptedDocument: any) {
return {
doc: "test",
}
}
}