github.com/annchain/OG@v0.0.9/consensus/vrf/model.go (about)

     1  package vrf
     2  
     3  import (
     4  	"encoding/hex"
     5  	"fmt"
     6  )
     7  
     8  //msgp:tuple VrfInfo
     9  type VrfInfo struct {
    10  	Message   []byte
    11  	Proof     []byte
    12  	PublicKey []byte
    13  	Vrf       []byte
    14  }
    15  
    16  
    17  func (v *VrfInfo) String() string {
    18  	if v == nil {
    19  		return ""
    20  	}
    21  	return fmt.Sprintf("Msg:%s, vrf :%s , proof :%s, pubKey :%s", hex.EncodeToString(v.Message), hex.EncodeToString(v.Vrf),
    22  		hex.EncodeToString(v.Proof), hex.EncodeToString(v.PublicKey))
    23  }