ContentIdentifier
Defined in: astrobase/src/cid/cid.ts:27
Represents a bech32 content identifier and implements methods for parsing it.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ContentIdentifier(
identifierOrPrefix
,value?
):ContentIdentifier
Defined in: astrobase/src/cid/cid.ts:32
Parameters
Section titled “Parameters”identifierOrPrefix
Section titled “identifierOrPrefix”value?
Section titled “value?”ArrayLike
<number
>
Returns
Section titled “Returns”ContentIdentifier
Accessors
Section titled “Accessors”prefix
Section titled “prefix”Get Signature
Section titled “Get Signature”get prefix():
string
Defined in: astrobase/src/cid/cid.ts:50
The content identifier prefix - indicating the type of the content identifier.
Returns
Section titled “Returns”string
Get Signature
Section titled “Get Signature”get value():
ArrayLike
<number
>
Defined in: astrobase/src/cid/cid.ts:55
The content identifier value bytes - if any.
Returns
Section titled “Returns”ArrayLike
<number
>
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: astrobase/src/cid/cid.ts:60
Returns
Section titled “Returns”string
The full content identifier in string format.