Ok, I understand it, that is without the permission of the owner of each token I will never be able to destroy them, right?
My doubt was whether the creator of the contract could burn tokens of any account but, according to what you told me the creator always have to be authorized to do that like any other address.
This authorization must be approved through the aproval () function afterwards it is possible to execute burnFrom () or transferFrom () is that correct?
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
Yes you may probably be right . Or I might be wrong with this explanation now...
If you are the creator of tokens and the smart contract, you have full authorization to use the approve() function. Unless you are a individual it's a big NO.
approve() function allows the spender of tokens or another smart contract to just ask for a withdrawal from a account any number of times, until the tokens balances are exhausted. Here address_spender is the address of the contract. If the return statement is TRUE, then it will invoke receiveapproval() function.
Here is an example which I have quoted from ethwiki for your reference on how does a smart contract work!
https://theethereum.wiki/w/index.php/ERC20_Token_Standard#How_Does_A_Token_Contract_Work.3F
Just check the link, it might be very helpful to you and may solve your doubts to an extent...
Why are you trying this in real time? You may use github to practice and learn here : https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.11+commit.68ef5810.js
Yes I've been test all of this under test network on Remix. I will continue doing tests to understand everything definitly. Thanks a lot for your help It was ver useful