public void Read(IReader reader) { Features = (OutputFeatures)reader.read_u8(); Commit = Ser.Ser.ReadCommitment(reader); SwitchCommitHash = SwitchCommitHash.Readnew(reader); Proof = Ser.Ser.ReadRangeProof(reader); }
public static SwitchCommitHash Readnew(IReader reader) { var sch = new SwitchCommitHash(); sch.Read(reader); return(sch); }
public Output Clone() { return(new Output() { Features = Features, Commit = Commit.Clone(), SwitchCommitHash = SwitchCommitHash.Clone(), Proof = Proof.Clone() }); }
public void Write(IWriter writer) { writer.write_u8((byte)Features); Commit.WriteCommitment(writer); SwitchCommitHash.Write(writer); if (writer.serialization_mode() == SerializationMode.Full) { writer.write_bytes(Proof.Proof); } }