I am using BouncyCastle to generate .NET core packet signatures. I want to be able to get the v value for the Ethereum signature.
To these ends, and with my understanding of the meaning of the v value, my aim is to take the source for ECDSASigner, modify it to a custom local version, and return the correct v value on the basis of the discovered X coordinate in that code.
What I don't know though is which of the values 27..30 (27..28 in Ethereum yellow paper), correspond to which of the possible outputs. Is eg: 27==positive Y for given X?
Also, btw where is this stuff documented? YellowPaper.io refers to "The Literature" but where?