Create a new StreamID.
new StreamID(<type>, <CID>|<cidStr>)
new StreamID(<type>, <CID>|<cidStr>, <CommitCID>|<CommitCidStr>)
CID. Pass '0', 0, or omit the value as shorthand for the genesis commit.
Protected
Readonly
_tagStatic
fromStatic
fromSame as fromBytes, but returns an Error instance rather than throwing if there is a problem with the input. Note that some exceptions can still be thrown in certain cases, if they come from lower-level libraries like multibase, for example.
Static
fromStatic
fromSame as fromString, but returns an Error instance rather than throwing if there is a problem with the input. Note that some exceptions can still be thrown in certain cases, if they come from lower-level libraries like multibase, for example.
Static
makeBytes representation
Genesis CID
Commit CID
Stream type code
Stream type name
Static
is
Commit identifier, includes type, genesis CID, commit CID.
Encoded as
<multibase-prefix><multicodec-streamid><type><genesis-cid-bytes><commit-cid-bytes>
.String representation is base36-encoding of the bytes above.