increment_nonce

Function increment_nonce 

Source
pub fn increment_nonce(nonce: &mut Nonce)
Expand description

Inrement given nonce by 1.

Treats Nonce as BE number.

If nonce can’t be incremented (all bits are 1), nonce is zeroed.

Note that behaviour of this function might change to not increment supplied nonces, but rather, return an increased nonce.

Spec: https://zetok.github.io/tox-spec#nonce-2