Home > borogove > Hash > fromUri

Hash.fromUri() method

Create a new Hash from a ni:, cid: or similar URI

Signature:

static fromUri(uri: string): borogove.Hash | null;

Parameters

Parameter Type Description
uri string The URI

Returns:

borogove.Hash | null

Hash or null on error