Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKByte size of cosmos address/public key/signatureForum ↗

Byte size of cosmos address/public key/signature

Cosmos-SDK4 posts1,727 views1 likesLast activity Oct 2018
SV
svaishnavyOP
Oct 2018 1

Hi,

I’m using cosmos-sdk for one of my projects. I want to know the number of bytes in cosmos address, public key and signature. Can someone please let me know if you know details about this.

Thanks

ZA
zaki
Oct 2018

Cosmos addresses are always 20 bytes/160 bits.

Cosmos public keys depend on the type of cryptography used. The scheme uses secp256k1 keys by default which are 33 bytes.

Signature are genereally 64 bytes.

SV
svaishnavy
Oct 2018

Thanks @zaki

Cosmos uses Bech32 encoding for addresses, will this change the size of the addresses and public keys?

ZA
zaki
Oct 2018

bech32 is just we encode values when displayed to humans, it doesn’t affect size on disk/ wire.

← Back to Discussions