github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/store/mainchain/states/law.go (about)

     1  package states
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/sixexorg/magnetic-ring/common"
     7  )
     8  
     9  type StateKV interface {
    10  	Serialize(w io.Writer) error
    11  	Deserialize(r io.Reader) error
    12  	GetKey() []byte	//
    13  	Hash() common.Hash	//root hash
    14  }