UNPKG

@fairdatasociety/fdp-lokijs-adapter

Version:
19 lines (16 loc) 573 B
import { Chunk } from './cac' import { Bytes, EthAddress, Signature } from './utils' export 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 }