[secp256r1] What hash is used to generate address?

I know that for ed25519 and secp256k1 a sha3_256 is used to hash keys to produce address.

My question is what hash is used for secp256r1 keys?

18 Likes

a SuiAddress is defined as the last sha3_256 of a 1-byte signature scheme flag and a public key. The flag is 0x00 for Ed25519, 0x01 for Secp256k1 and 0x02 for Secp256r1.

17 Likes

Ok, so it is the same for secp256r1 then. Great.

Iā€™m implementing in python and wanted to check.

Thanks

5 Likes