I'm trying to bind a H160 address with a H256 address, if we assume this function:
fn bind(origin: OriginFor<T>, address: H160 , signature: [u8; 130]) -> Result<(), Error<T>>{
// check the signature belonging to an address
ensure!(check_signature(address, signature), Error<T>);
// bind the sender with the address
create_account(sender, address);
Ok(())
}
Is this function available in Substrate? Or do you have any advice on how to do the bind function?