Skip to content

Commit

Permalink
remove signature on encrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Oct 13, 2020
1 parent 15e6518 commit 0ed34c9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/provider/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 0ed34c9

Please sign in to comment.