Function address_from_keypair

Source
pub fn address_from_keypair<AccountId: From<[u8; 32]> + AsRef<[u8]>>(
    keypair: &Keypair,
) -> Address
Expand description

Returns the [ink::Address] for a given Keypair.

ยงDeveloper Note

We take the AccountId and return only the first twenty bytes, this is what pallet-revive does as well.