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(string memory _key, string memory _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; https://github.com/ethereum/EIPs/issues/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