didtest: offset persona constants

It seems like having a persona with a zero value confuses some static checker into warning against a possible nil pointer deref.

An easy fix is to just not have zero.
This commit is contained in:
Michael Muré
2025-01-13 13:30:03 +01:00
parent 10dd4fa6d1
commit bf27b97a57

View File

@@ -28,7 +28,7 @@ type Persona int
//
// [table]: https://en.wikipedia.org/wiki/Alice_and_Bob#Cryptographic_systems
const (
PersonaAlice Persona = iota
PersonaAlice Persona = iota + 1
PersonaBob
PersonaCarol
PersonaDan