You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function sendMessage(address_to, stringmemory_text)
Last Index
function lastIndex(address_owner) constantreturns (uint256)
Returns an index of the last message for the _owner address.
Get last message
function getLastMessage(address_who) constantreturns (address_from, stringmemory_text, uint256_time)
Returns the last message for the _who address and the sender of this message.
Get message by index
function getMessageByIndex(address_who, uint256_index) constantreturns (address_from, stringmemory_text, uint256_time)
Returns the message for _who address at _index position and the sender of this message.
Get public key
function getPublicKey(address_who) constantreturns (stringmemory_key, stringmemory_key_type)
Returns a public key of the _who address and a type of this key.
_key_type is an encryption method that is agreed upon in advance between the sender and receiver of the message. For example, RSA2048 can be used as the setting value.
Set public key
function setPublicKey(stringmemory_key, stringmemory_key_type)
Sets a public key and a description of key type for the sender address.
1. Is your feature request related to a problem? Please describe.
Reference; ethereum/EIPs#802
2. Describe the solution you'd like
I propose the following specification.
Specification
Methods
Send message
Last Index
Get last message
Get message by index
Get public key
_key_type
is an encryption method that is agreed upon in advance between the sender and receiver of the message. For example,RSA2048
can be used as the setting value.Set public key
Events
New message
Public key updated
The text was updated successfully, but these errors were encountered: