Skip to main content

encode_owner

Function encode_owner 

Source
pub fn encode_owner(owner: &LockOwner) -> String
Expand description

What: The text of one owner record, as the incumbent writes it. Why: Other wrappers read this record, so its key order and spelling are fixed.

In TS you’d write (pseudocode):

`${JSON.stringify({ leaseToken, ownerBirthIdentity, ownerPid, schemaVersion })}\n`