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:
parent
15e651801c
commit
0ed34c9245
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user