Re:Please put units in names
by dbrgn on Monday March 21, 2022 @05:23AM
(#30751968)
You can do something like this:
And then use it like this to create a newtype:
To create this newtype, you need to use unsafe casting (`as PublicKey`), but you can use a PublicKey directly in APIs where a Uint8Array is needed (thus "weak opaque").
[ Parent
| on HN ]
There are no comments on this comment yet.