Skip to content

nooschain v0.1.0


nooschain / node-sync/payload-replication / explainPayloadReplication

Function: explainPayloadReplication()

explainPayloadReplication(args): Promise<PayloadReplicationDecision>

Defined in: node-sync/payload-replication.ts:80

Determines whether this node should store encrypted payload bytes for a bucket.

replicate_encrypted_to_all_nodes stores ciphertext for verified active nodes, metadata_only never stores ciphertext, and replicate_encrypted_to_authorized_nodes stores ciphertext only for verified nodes in the bucket creator organization or an organization with read-encrypted/admin permission.

Parameters

args

bucketId

string

db

ReplicationDatabase

localNodeId

string

verifiedNodeMembership?

VerifiedNodeMembership

Returns

Promise<PayloadReplicationDecision>

Audience-first NOOSChain documentation.