Let's say I have the following native token unit d5e6bf0500378d4f0da4e8dde6becec7621cd8cbf5cbb9b87013d4cc537061636542756433323639
that consists of the policy id d5e6bf0500378d4f0da4e8dde6becec7621cd8cbf5cbb9b87013d4cc
and asset name 537061636542756433323639
.
The asset name is a HEX representation of the name. Therefore it can vary in length.
But the policy id is some sort of a hash of the policy, so I'd assume the length of the string is always the same. Is this correct?
What I want to achieve is to split the asset name and the policy id e.g. like this:
'd5e6bf0500378d4f0da4e8dde6becec7621cd8cbf5cbb9b87013d4cc537061636542756433323639'.substring(56)
> "537061636542756433323639"