static VdfRevelationContent UnforgeVdfRevelaion(ForgedReader reader) { return(new VdfRevelationContent { Solution = new(2) { Hex.Convert(reader.ReadBytes(100)), Hex.Convert(reader.ReadBytes(100)) } });
static SeedNonceRevelationContent UnforgeSeedNonceRevelaion(ForgedReader reader) { return(new SeedNonceRevelationContent { Level = reader.ReadInt32(), Nonce = Hex.Convert(reader.ReadBytes(Lengths.nce.Decoded)) }); }
static ActivationContent UnforgeActivation(ForgedReader reader) { return(new ActivationContent { Address = reader.ReadTz1Address(), Secret = Hex.Convert(reader.ReadBytes(20)) }); }
static BlockHeader UnforgeBlockHeader(ForgedReader reader) { return(new BlockHeader { Level = reader.ReadInt32(), Proto = reader.ReadInt32(1), Predecessor = reader.ReadBase58(Lengths.B.Decoded, Prefix.B), Timestamp = DateTimeExtension.FromUnixTime(reader.ReadInt64()), ValidationPass = reader.ReadInt32(1), OperationsHash = reader.ReadBase58(Lengths.LLo.Decoded, Prefix.LLo), Fitness = reader.ReadEnumerable(r => r.ReadHexString()).ToList(), Context = reader.ReadBase58(Lengths.Co.Decoded, Prefix.Co), Priority = reader.ReadInt32(2), ProofOfWorkNonce = Hex.Convert(reader.ReadBytes(8)), SeedNonceHash = UnforgeSeedNonce(reader), Signature = reader.ReadBase58(Lengths.sig.Decoded, Prefix.sig), }); }