We may or may not want to have recognized be part of the public interface of a relay cell's constructor. If we do keep it, it should at least be a default argument.
All relay cells which we create will have their recognized field set to zero. However, we may receive relay cells which (erroneously) have their recognized field set to something besides zero.
Where should we check whether a received relay cell is recognized. Probably in the OnionCircuit after a cell has been created using from_bytes().
We may or may not want to have recognized be part of the public interface of a relay cell's constructor. If we do keep it, it should at least be a default argument.
All relay cells which we create will have their
recognized
field set to zero. However, we may receive relay cells which (erroneously) have theirrecognized
field set to something besides zero.Where should we check whether a received relay cell is recognized. Probably in the
OnionCircuit
after a cell has been created usingfrom_bytes()
.