Wraps the given reader in SigmaByteReader and delegates to parse.
Wraps the given reader in SigmaByteReader and delegates to parse. NOTE: it is used in spam tests.
Wraps the given writer in SigmaByteWriter and delegates to serialize.
Wraps the given writer in SigmaByteWriter and delegates to serialize. NOTE: it is used in spam tests.
(Since version ) see corresponding Javadoc for more information.
A serializer which encodes group elements, so elliptic curve points in our case, to bytes, and decodes points from bytes. Every point is encoded in compressed form (so only X coordinate and sign of Y are stored). Thus for secp256k1 point, 33 bytes are needed. The first bytes is whether equals 2 or 3 depending on the sign of Y coordinate(==2 is Y is positive, ==3, if Y is negative). Other 32 bytes are containing the X coordinate. Special case is infinity point, which is encoded by 33 zeroes. Thus elliptic curve point is always encoded with 33 bytes.