Function iota_types::crypto::generate_proof_of_possession
source ยท pub fn generate_proof_of_possession(
keypair: &AuthorityKeyPair,
address: IotaAddress,
) -> AuthoritySignature
Expand description
Creates a proof of that the authority account address is owned by the
holder of authority key, and also ensures that the authority
public key exists. A proof of possession is an authority
signature committed over the intent message intent || message || epoch
(See more at [struct IntentMessage] and [struct Intent]) where the message
is constructed as authority_pubkey_bytes || authority_account_address
.