Skip to content

Timestamp encoding to bytes is weird #1445

@vedhavyas

Description

@vedhavyas

ATM we encode bytes as follows

  • Seconds(8 bytes) + nanoseconds(4 bytes)

We can either remove the nanosecond completely and just encode the epoch until seconds.
If we want to nano seconds to be included, then use time.UnixNano() to fetch the uin64 and encode that to bytes.

this will break the current AssetNFTs that rely on the maturity date in the above-mentioned format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions