github.com/okex/exchain@v1.8.0/libs/tendermint/crypto/merkle/simple_proof_ibc.go (about)

     1  package merkle
     2  
     3  import cryptomerkel "github.com/okex/exchain/libs/tendermint/proto/crypto/merkle"
     4  
     5  func (sp *SimpleProof) ToProto() *cryptomerkel.SimpleProof {
     6  	if sp == nil {
     7  		return nil
     8  	}
     9  	pb := new(cryptomerkel.SimpleProof)
    10  	pb.Total = int64(sp.Total)
    11  	pb.Index = int64(sp.Index)
    12  	pb.LeafHash = sp.LeafHash
    13  	pb.Aunts = sp.Aunts
    14  	return pb
    15  }