โ† Polkadot

๐Ÿ—๏ธ Address from Key

Derive an account and its address from a public key. Sr25519 and Ed25519 keys are the account id; ECDSA accounts are the Blake2b-256 of the compressed key.

A 32-byte key can be either Sr25519 or Ed25519; both give the same account, because the account id is the key itself. A 33- or 65-byte key is ECDSA.