trait_keyless

Function encode_app_agent_account

Source
pub fn encode_app_agent_account(app_agent_id: &AppAgentId) -> AccountId32
where AccountId32: From<[u8; 32]>,
Expand description

Builds a keyless account for the specified AppAgentId.


The structure of an AppAgent account: [0..=3] -> AppAgentId [4..4] -> Address type identifier (1) [5..=31] -> Checksum


§Arguments

  • app_agent_id - The AppAgentId used to build the keyless account.

§Returns

Returns the built keyless account as an AccountId32