Encoding.md 448 Bytes
Newer Older
1 2
# `Encoding` Invariants

3
## `convertRoundTripAToB` never fails.
4
**Test:** [`Encoding.t.sol#L73`](../test/invariants/Encoding.t.sol#L73)
5 6 7 8

Asserts that a raw versioned nonce can be encoded / decoded to reach the same raw value. 

## `convertRoundTripBToA` never fails.
9
**Test:** [`Encoding.t.sol#L82`](../test/invariants/Encoding.t.sol#L82)
10

11
Asserts that an encoded versioned nonce can always be decoded / re-encoded to reach the same encoded value.