@textile/hub > ThreadID > fromBytes
ThreadID.fromBytes() method
fromBytes takes an ID data slice, parses it and returns an ID. For IDV1, the data bytes are arranged as:
Signature:
static fromBytes(data: Uint8Array): ThreadID;
Parameters
Parameter | Type | Description |
---|---|---|
data | Uint8Array | The input Thread ID bytes. |
Returns: