Skip to content

Commit

Permalink
Update EIP-5564: update contract name and scheme id
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
nerolation authored Jul 12, 2023
1 parent 61a7314 commit 8de9fbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions EIPS/eip-5564.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function computeStealthKey(

The implementation of these methods is scheme-specific. The specification of a new stealth address scheme MUST specify the implementation for each of these methods. Additionally, although these function interfaces are specified in Solidity, they do not necessarily ever need to be implemented in Solidity, but any library or SDK conforming to this specification MUST implement these methods with compatible function interfaces.

A one byte integer (`schemeId`) is used to identify stealth address schemes. The `schemeId` represents an incrementing integer beginning at 0. A mapping from the `schemeId` to its specification MUST be declared in the EIP that proposes to standardize a new stealth address scheme. Furthermore, the schemeId MUST be added to [this overview](../assets/eip-5564/scheme_ids.md). These EIP extensions MUST specify:
A 256 bit integer (`schemeId`) is used to identify stealth address schemes. A mapping from the schemeId to its specification MUST be declared in the EIP that proposes to standardize a new stealth address scheme. It is RECOMMENDED that `schemeId`s are chosen to be monotonically incrementing integers for simplicity, but arbitrary or meaningful `schemeId`s may be chosen. Furthermore, the schemeId MUST be added to [this overview](../assets/eip-5564/scheme_ids.md). These extensions MUST specify:

- The integer identifier for the scheme.

Expand Down Expand Up @@ -113,7 +113,7 @@ contract IERC5564Announcer {
);
/// @dev Called by integrators to emit an `Announcement` event.
/// @param schemeId The applied stealth address scheme (f.e. secp25k1).
/// @param schemeId The integer specifying the applied stealth address scheme.
/// @param stealthAddress The computed stealth address for the recipient.
/// @param ephemeralPubKey Ephemeral public key used by the sender.
/// @param metadata An arbitrary field MUST include the view tag in the first byte.
Expand Down Expand Up @@ -280,3 +280,4 @@ Thus, the sender may attach a small amount of ETH to each stealth address transa
## Copyright

Copyright and related rights waived via [CC0](../LICENSE.md).

0 comments on commit 8de9fbd

Please sign in to comment.