UNPKG

@fairdatasociety/fdp-lokijs-adapter

Version:
17 lines (16 loc) 591 B
import { Chunk } from './cac'; import { Bytes, EthAddress, Signature } from './utils'; export declare type Identifier = Bytes<32>; /** * With single owner chunks, a user can assign arbitrary data to an * address and attest chunk integrity with their digital signature. * * This interface extends the Chunk interface so it has the same * properties, but the address calculation is based on the identifier * and the owner of the chunk. */ export interface SingleOwnerChunk extends Chunk { identifier: () => Identifier; signature: () => Signature; owner: () => EthAddress; }