Make public key mandatory in insert_key (#3512)

This commit is contained in:
Bastian Köcher
2019-08-29 16:11:26 +02:00
committed by GitHub
parent b07fd450e2
commit ee16acdc14
4 changed files with 8 additions and 22 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ pub trait AuthorApi<Hash, BlockHash> {
fn insert_key(&self,
key_type: String,
suri: String,
maybe_public: Option<Bytes>
) -> Result<Bytes>;
public: Bytes,
) -> Result<()>;
/// Generate new session keys and returns the corresponding public keys.
#[rpc(name = "author_rotateKeys")]