MCPcopy Create free account
hub / github.com/DNAProject/DNA / Serialization

Method Serialization

core/states/validator_state.go:36–40  ·  view source on GitHub ↗
(sink *common.ZeroCopySink)

Source from the content-addressed store, hash-verified

34}
35
36func (this *ValidatorState) Serialization(sink *common.ZeroCopySink) {
37 this.StateBase.Serialization(sink)
38 buf := keypair.SerializePublicKey(this.PublicKey)
39 sink.WriteVarBytes(buf)
40}
41
42func (this *ValidatorState) Deserialization(source *common.ZeroCopySource) error {
43 err := this.StateBase.Deserialization(source)

Calls 2

WriteVarBytesMethod · 0.80
SerializationMethod · 0.65

Tested by 1