Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinNetwork ¶
func JoinNetwork(nodeIP string, servers ServerList) bool
nodeIP는 노드의 ip주소를 보내주시고, servers에는 패키지 내 ServerList 구조체에 값을 채워서 보내주시면 됩니다.
Types ¶
type CommitteeInfo ¶
type CommitteeInfo struct {
AggregateCommit []byte `json:"aggcommit"`
AggregatePubKey []byte `json:"aggpubkey"`
CommitteeList []CommitteeNodeInfo `json:"committeelist"`
PrimaryNodeInfo string
}
committee request에 대한 response로 받는 데이터
func ReqeustSetupCommittee ¶
func ReqeustSetupCommittee(round int32) (recvCommittee CommitteeInfo)
현재 Round값만 채워서 보내주시면 됩니다.
type CommitteeNodeInfo ¶
type CommitteeNodeInfo struct {
Round int32 `json:"round"`
Address string `json:"address"`
VrfPubKey []byte `json:"vrfpubkey"`
VrfResult vrfValue `json:"vrfresult"`
}
committee request할 때 보내는 데이터 해당 데이터는 grpc에 정의
type ServerList ¶
Click to show internal directories.
Click to hide internal directories.