Module containing helpers for deploying resource accounts.
Resource accounts allow the module to sign as itself on-chain, which is useful for actions such as Coin initialization.
The aptos-create-resource-account uses this module internally. Please read the documentation for that crate for more information.
One can perform the following steps:
- Create a new public/private keypair via
aptos key generate. - Call
deployer::create_resource_accountwith the generated public key. - Upload your module via
aptos move publish. - Call
deployer::acquire_signer_capabilityfrom an initialization function in your module. You will need to provide the private key as a signer.
To use deployer in your code, add the following to the [addresses] section of your Move.toml:
[addresses]
deployer = "0x1245d0cf838606de0efd8bdfcc80b80cb4198f589b14ecac66ccc83035102c00"Apache-2.0