Create a Uint8Array from the passed string
Uint8Array
Supports utf8, utf-8, hex, and any encoding supported by the multiformats module.
utf8
utf-8
hex
Also ascii which is similar to node's 'binary' encoding.
ascii
Create a
Uint8Arrayfrom the passed stringSupports
utf8,utf-8,hex, and any encoding supported by the multiformats module.Also
asciiwhich is similar to node's 'binary' encoding.