updating definition of authority

This commit is contained in:
Godmode Galactus 2023-04-02 12:11:35 +02:00
parent 8bab9cc65d
commit 168d710ee1
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
1 changed files with 5 additions and 5 deletions

View File

@ -106,11 +106,11 @@ In the case of an externally owned account (i.e, keypair) owner is a `system pro
Program derived address owner is usually the program.
Account `Authority`: The true authority for the account. Let's take an example of associated token account.
A associated token account is a `PDA` derived from associated token program, so the owner is the
associated token program. But the program internally saves who has the authority over the account. To update
the account, program must call invoke signed with the signer seeds of the PDA. For operations like withdrawing tokens,
the authority of the associated token account has to be the signer for the transaction containing transfer instruction.
To receive tokens from another account, the authority's signature is not required.
A associated token account is a `PDA` derived from associated token program, where the owner is token program.
But the program internally saves who has the authority over the account. Only token program can change the data
of token account. For operations like withdrawing tokens, the authority of the associated token account has to
be the signer for the transaction containing transfer instruction. To receive tokens from another account, the
authority's signature is not required.
## Detailed Design