Helper method to parse ErgoBoxCandidate previously serialized by serializeBodyWithIndexedDigests().
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.
Helper method for ErgoBoxCandidate serialization.
Helper method for ErgoBoxCandidate serialization.
If tokensInTx
is defined, then token ids are not serialized, instead they are
looked up in this collection and the corresponding index is serialized.
This saves at least (32 - 4) bytes for each token. The ids themselves are
serialized elsewhere, e.g. as part of transaction.
candidate box to be serialized
optional collection of token ids that should be replaced by indexes.
writer of serialized bytes
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.