Documentation
¶
Index ¶
- Variables
- func GetActiveDBNodes(relevantTxs []blockchain.Transaction) []string
- func InitCore()
- func SelectKNodesFromTimestamp(timestamp string, activeNodes []string, k int) []string
- type Core
- type DatabaseNode
- type Message
- type MessageResponse
- type ModCert
- type ModSign
- type Moderator
- type MsgCert
- type UserMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var RelevantTxs []blockchain.Transaction
Functions ¶
func GetActiveDBNodes ¶
func GetActiveDBNodes(relevantTxs []blockchain.Transaction) []string
Step 1: Preprocessing — Compute current DB nodes
Types ¶
type DatabaseNode ¶
DatabaseNode represents a database node in the network.
type MessageResponse ¶
type MessageResponse struct {
Messages []Message `json:"messages"`
}
type ModCert ¶
type ModCert struct {
Msg string
Timestamp string
Signatures []ModSign // Only stores {PublicKey, Signature}
}
ModCert aggregates valid moderator signatures.
type Moderator ¶
Moderator represents a moderator node.
func FetchModerators ¶
func FetchModerators() []Moderator
FetchModerators simulates retrieving moderator details. TODO: Replace with real blockchain data fetching.
type UserMessage ¶
Click to show internal directories.
Click to hide internal directories.