y-fdp-storage
Version:
fdp-storage database provider for Yjs
20 lines (17 loc) • 631 B
text/typescript
import { EthAddress } from '@ethersphere/bee-js/dist/types/utils/eth'
import { Chunk } from './cac'
import { Bytes, 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
}