Score:0

Validate Certificates on Ethereum blockchain

us flag

i have a function transferWithData(address to, uint256 amount, bytes data) it basically transfer ERC20 token but it has an additional 'data' field, in order to inject a certificate generated off-chain by an issuer.

Certificate contains:

  1. The function ID which ensures the certificate can’t be used on an other function.
  2. parameters which ensures the input parameters have been validated by the issuer.
  3. validity date which ensures the certificate can’t be used after validity date.
  4. nonce which ensures the certificate can’t be used twice.

Finally the certificate is signed by the issuer and passed as parameter in the transferWithData function.

my question is that how to verify this certificate on chain. i am able to recover the issuer address using ecrecover. but i also need to validate the certificate content. I am following this repo https://github.com/NDAXlO/ERC1400/blob/master/contracts/mocks/CertificateControllerMock.sol thanks

kelalaka avatar
in flag
This might better to be asked at [ethereum](https://ethereum.stackexchange.com/)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.