pieceMetadata
pieceMetadata(
ref,options):PieceMetadataV2
Defined in: derive.ts:539
Piece FEE envelope metadata entries. Read them back with readPieceMetadata.
A piece grant covers whatever piece carries its salt, so a salt must be unique to one piece: always take it from newSalt, and never reuse one.
Everything a reader needs travels with the piece, so a copy opens wherever replication or repair puts it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ref |
GroupKeyRef |
options |
{ group?: string; salt: `0x${string}`; } |
options.group? |
string |
options.salt |
`0x${string}` |