1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

remove signature on encrypt

This commit is contained in:
alexcos20 2020-10-13 07:11:41 -07:00
parent 15e651801c
commit 0ed34c9245

View File

@ -56,15 +56,8 @@ export class Provider extends Instantiable {
public async encrypt(did: string, document: any, account: Account): Promise<string> {
await this.getNonce(account.getId())
const signature = await this.ocean.utils.signature.signWithHash(
did + this.nonce,
account.getId(),
account.getPassword()
)
const args = {
documentId: did,
signature: signature,
document: JSON.stringify(document),
publisherAddress: account.getId()
}