Skip to content

Commit

Permalink
Add deprecation warning for decryption methods (MetaMask#509)
Browse files Browse the repository at this point in the history
Both decryption-related methods (`eth_decrypt` and
`eth_getPublicEncryptionKey`) have been deprecated. They are now
labelled as deprecated, and have a deprecation warning that links our
blog post with further information on why they were deprecated.

I considered making a new "deprecated methods" section, but I wasn't
sure how to square that with our current categorization. This seems
best for now, at least until we change how methods are organized
overall.
  • Loading branch information
Gudahtt authored Jun 28, 2022
1 parent 5740c2f commit 4f81530
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/guide/rpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,16 @@ function requestPermissions() {

## Unrestricted Methods

### `eth_decrypt`
### `eth_decrypt` (DEPRECATED)

::: warning
This method is deprecated and may be removed in the future.

[See here for more information.](https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686)
:::

::: tip Platform Availability
This RPC method is not yet available in MetaMask Mobile.
This RPC method is not available in MetaMask Mobile.
:::

#### Parameters
Expand Down Expand Up @@ -218,10 +224,16 @@ ethereum
.catch((error) => console.log(error.message));
```

### `eth_getEncryptionPublicKey`
### `eth_getEncryptionPublicKey` (DEPRECATED)

::: warning
This method is deprecated and may be removed in the future.

[See here for more information.](https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686)
:::

::: tip Platform Availability
This RPC method is not yet available in MetaMask Mobile.
This RPC method is not available in MetaMask Mobile.
:::

#### Parameters
Expand Down

0 comments on commit 4f81530

Please sign in to comment.