Skip to main content

Module delegate

Module delegate 

Source
Expand description

Delegated identifiers, delegate side.

Order (as keripy 1.2+ Anchorer, whose delegators only take a fully witnessed event as delegable): the delegate’s witnesses receipt the dip/drt first, then it goes to the delegator’s mailbox, then a local watcher follows the delegator’s KEL through the delegator’s witnesses until a fully witnessed event anchors the delegate’s seal. Only then is the delegated event completed (source seal couple stored) and published, with the delegator’s KEL, to the delegate’s witnesses. Neither side writes approval state for the other.

Functions§

delegated 🔒
forward_to_delegator 🔒
Forward msg to the delegator of alias through the delegator’s mailbox at one of its witnesses, as a /fwd from local identifier sender.
handle_confirm
krust delegate confirm (kli delegate confirm): approve delegated events waiting for the local delegator alias.
send_to_delegator
Send own delegated event sn of alias to its delegator’s mailbox at one of the delegator’s witnesses, wrapped in a /fwd from sender (keripy Poster.forwardToWitness). sender must be an identifier the delegator’s witness can verify: a proxy for an inception, as keripy requires.
wait_and_complete
Watch the delegator’s witnesses until the delegator has approved own event sn, then publish the approved event and the delegator’s KEL to own witnesses (keripy Anchorer.processUnanchoredEscrow + publishDelegator), and send the approved event, now with its source seal couple, back to the delegator (keripy Poster.sendEventToDelegator): a keripy delegator accepts the delegated event from that.