function · Browser and Node
vidForm
0x01 ‖ key for an Ed25519 did:key, otherwise 0x02 ‖ length ‖ UTF-8.
@toip-tools/mesh-transportView sourceimport { vidForm } from "@toip-tools/mesh-transport";
Declaration
vidForm(vid: string): Uint8Array;
Parameters
vidrequiredstring
Returns
Uint8Array<ArrayBufferLike>