SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

secret.rewrap

BETA

Short name: rewrap

Version: 1.0.0

Re-wraps every sensitive envelope on an atom under a new owner KEK without re-encrypting ciphertext (SOCIALLUX_THEORY §13.3).

Back to primitive library

Inputs

KeyTypeRequiredDescription
atomIdobjectIdtrueAtom to rewrap.
fromOwnerIdstringtrueOwner whose KEK currently wraps the envelopes. Must match the kid encoded in each envelope.
toOwnerIdstringtrueOwner whose KEK will wrap the envelopes after this operation.

Outputs

KeyTypeRequiredDescription
atomVersionnumberfalsePost-update atom version.
rewrappednumberfalseNumber of envelopes rewrapped.