Make public key mandatory in insert_key (#3512)

This commit is contained in:
Bastian Köcher authored and GitHub committed 2019-08-29 16:11:26 +02:00
1 parent b07fd450e2
commit ee16acdc14
4 files changed
+8 -22

No files matched your search

+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")]