ATECC508A.Validity.compress

You're seeing just the function compress, go back to ATECC508A.Validity module for more information.

Specs

Convenience function for compressing issue date/expiration tuples

Link to this function

compress(issue_date, expire_date)

View Source

Specs

Compress an issue date/expiration to a bitstring

This function can easily lose precision on the dates and times since so little is encoded. If accepting arbitrary datetimes, you'll want to check that the conversion didn't truncate in strange ways.

Important: the max issue year is 2031!!