updateAgent(options)

Commits a new agent entry to the chain, with either or both new identity information or a new public key, while revoking the old key. If revoking a key, also adds that key to the node blockedlist (which is also gossiped), as it's no longer a valid peer address.

options: object

options.Revocation: Revocation-Data-string

options.Identity: Identity-Info-string

Returns: hash-string OR error

expand_less JS example
updateAgent({Identity:"newemail@example.com",Revocation:"sample revocation reason"})