Skip to main content

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

NameTypeDescription
Cextends Capabilities = CapabilitiesCapabilities
Encodingextends MulticodecCode = MulticodecCodemulticodec code corresponding to the encoding
SigAlgextends Crypto.SigAlg = Crypto.SigAlgMulticodec 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