You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Update logic associated with certificate verification based on the latest implementation of LIP0053
defverifyCertificate(ccu: Transaction) ->None:
certificateBytes=ccu.params.certificatecertificate=decode(certificateSchema, certificateBytes)
partnerchainID=ccu.params.sendingChainIDpartnerchainAccount=chainAccount(partnerchainID)
# Certificate height must be greater than last certificate height.ifcertificate.height<=partnerchainAccount.lastCertificate.height:
raiseException("Certificate height is not greater than last certificate height.")
# Certificate timestamp must be smaller than timestamp of the block including the CCU.timestamp=timestampoftheblockincludingccuifcertificate.timestamp>=timestamp:
raiseException("Certificate timestamp is not smaller than timestamp of the block including the CCU.")
### What was the problem?
This PR resolves#7687 and resolves#7688
### How was it solved?
- Move verifyCertificateSignature to internalMethod and update per LIP
- Add verifyCertificate to internalMethod per LIP
### How was it tested?
- Add unit tests to cover all the cases
Co-authored-by: !shan <[email protected]>
Description
Update logic associated with certificate verification based on the latest implementation of LIP0053
Acceptance Criteria
Additional Information
The text was updated successfully, but these errors were encountered: