Documentation ¶
Index ¶
- Constants
- func CheckSize(size int) bool
- func ParentHash(leftBytes []byte, rightBytes []byte) []byte
- func RequestReportMerkleRoot(baseUrl string, timeout uint64, taskId uint64, xwcAddr string, ...) (uint64, uint64, error)
- func RequestReportPathData(baseUrl string, timeout uint64, taskId uint64, xwcAddr string, ...) error
- func RequestServerTimestamp(baseUrl string, timeout uint64) (int64, error)
- func RequestTask(baseUrl string, timeout uint64, timestamp int64, xwcAddr string, ...) (uint64, error)
- type Auditor
- type TreeNode
- type TreeNodeValue
Constants ¶
View Source
const ( WAIT_SECONDS = 5 * 60 AUDITOR_RPC_TIMEOUT = 10 )
Variables ¶
This section is empty.
Functions ¶
func ParentHash ¶
func RequestReportMerkleRoot ¶
func RequestReportPathData ¶
func RequestServerTimestamp ¶
Types ¶
type Auditor ¶
type Auditor struct { // AuditEndpoint string // Local store db LocalDB *localstore.DB // Node address PenguinAddress string // Signer Signer crypto.Signer // Signer pubkey (hex) SignerPubKey string // Payer xwc address XwcAcctAddress string // contains filtered or unexported fields }
func CreateNewAuditor ¶
type TreeNode ¶
type TreeNode struct { PtrLeftSon *TreeNode PtrRightSon *TreeNode Data TreeNodeValue }
func (*TreeNode) GetNodeHash ¶
func (*TreeNode) GetNodeHashHex ¶
func (*TreeNode) GetPathWayHashHex ¶
func (*TreeNode) GetRootRelatedHashHex ¶
type TreeNodeValue ¶
type TreeNodeValue *[]byte
Click to show internal directories.
Click to hide internal directories.