Interface: UCANBlock<C, Encoding, SigAlg>
types.UCANBlock
Represents a UCAN IPLD block
Note: once we change the Capability generic to an array we can merge this with ucanto transport block
Type parameters
Name | Type | Description |
---|---|---|
C | extends Capabilities = Capabilities | Capabilities |
Encoding | extends MulticodecCode = MulticodecCode | multicodec code corresponding to the encoding |
SigAlg | extends Crypto.SigAlg = Crypto.SigAlg | Multicodec code corresponding to the hashing algorithm of the Link |
Hierarchy
Block
<UCAN
<C
>,Encoding
,SigAlg
>↳
UCANBlock
Properties
bytes
• bytes: ByteView
<UCAN
<C
>>
Inherited from
IPLDBlock.bytes
Defined in
node_modules/multiformats/dist/types/src/block/interface.d.ts:40
cid
• cid: Link
<UCAN
<C
>, Encoding
, SigAlg
, 1
>
Inherited from
IPLDBlock.cid
Defined in
node_modules/multiformats/dist/types/src/block/interface.d.ts:41
data
• Optional
data: UCAN
<C
>
Defined in
node_modules/@ipld/dag-ucan/dist/src/ucan.d.ts:183