data label.
Mount and bind
oftp2({ data, partner }) returns the app to place at a path of your tree.
Bind the partner with oftp2Partner(endpoint, agreement, label).
app.ts
oftp2.operator is granted from code: ctx.grant(oftp2.operator, { to, under }) in one of your
mutations (Grants).
The mount places the partner subtree at oftp2.partner: partner.send,
partner.get, partner.list and partner.status, with its outgoing,
incoming and connection tables. Its operator role clears data, is the
only role those functions allow, and runs the session clock.
Use the same label for the receiver and the mount.
Set the agreement to JSON. Include
odette_id, password, partner_odette_id, partner_password,
partner_host, partner_port, partner_certificate, our_certificate,
and our_key. Use PEM certificates and a PKCS #8 PEM private key. The
host and port must match the receiver. TLS uses platform trust or the
installed partner_tls_ca PEM bundle. Supply client_tls_identity for
partners that require client TLS authentication. Agree on suite 04 and
signed SHA-256 replies. Keep the original signing principals available
while receipts remain outstanding.
Sending and later receipts
Send canonical base64 data for one unstructured file of up to 24 KiB. Supply the agreeddataset, a CCYYMMDD date, and an HHMMSScccc time
with a nonzero counter. Allocate the tuple once per pair of Odette
identities across installations. Repeating a send key with identical
content returns the original delivery. The mount’s clock submits each
file once and continues polling after a task settles Unknown.
The app settles signed EERP and NERP responses in the sending session or
a later poll. Later responses can settle an Unknown send without
resubmitting the document. A different agreement, file identity, or digest
leaves the original exchange unsettled. A conflicting decision does not
replace the first settled result. Receipts are bounded to 16 KiB and
describe transport disposition.