# How to convert a public key to a sui address

**URL:** <https://forums.sui.io/t/how-to-convert-a-public-key-to-a-sui-address/46642>\
**Category:** Move\
**Created:** [December 2, 2024, 3:01pm UTC](https://forums.sui.io/t/how-to-convert-a-public-key-to-a-sui-address/46642 "2024-12-02T15:01:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefanos](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/stefanos/32/1459_2.png) [@Stefanos](https://forums.sui.io/u/Stefanos)\
**Post date:** [December 2, 2024, 3:01pm UTC](https://forums.sui.io/t/how-to-convert-a-public-key-to-a-sui-address/46642/1 "2024-12-02T15:01:59Z")

</div>

Question from Discord:

> How to convert the public key to sui address for Sui Move.

---

<div class="post-metadata">

**Author:** ![Stefanos](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/stefanos/32/1459_2.png) [@Stefanos](https://forums.sui.io/u/Stefanos)\
**Post date:** [December 2, 2024, 3:02pm UTC](https://forums.sui.io/t/how-to-convert-a-public-key-to-a-sui-address/46642/2 "2024-12-02T15:02:06Z")

</div>

You need to hash the signature scheme flag byte concatenated with the public key bytes using the BLAKE2b hashing function. The Sui address should be a 32-byte hash. The BLAKE2b hashing function is available in the [sui lib](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/packages/sui-framework/sources/crypto/hash.move). You can find a Rust example of this [here](https://docs.sui.io/guides/operator/exchange-integration#set-up-sui-addresses)
