diff --git a/docs/index.rst b/docs/index.rst index 1dc8eb35f6..66e3f7cb8c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,8 +18,9 @@ SDK :maxdepth: 1 sdk/install.rst + sdk/key-management.rst .. sdk/overview.rst # needs to be updated -.. old/glossary.rst # not completely up to date but has good content +.. old/glossary.rst # not completely up to date but has good content .. Basecoin .. -------- diff --git a/docs/sdk/key-management.rst b/docs/sdk/key-management.rst new file mode 100644 index 0000000000..d2b6577290 --- /dev/null +++ b/docs/sdk/key-management.rst @@ -0,0 +1,18 @@ +Key Management +============== + +Here we cover many aspects of handling keys within the Cosmos SDK framework. + +Pseudo Code +----------- + +Generating an address for an ed25519 public key (in pseudo code): + +:: + + const TypeDistinguisher = HexToBytes("1624de6220") + + // prepend the TypeDistinguisher as Bytes + SerializedBytes = TypeDistinguisher ++ PubKey.asBytes() + + Address = ripemd160(SerializedBytes)