Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionLength = 8 MaxMerklePdpChallengeBlock = 1 )
View Source
const (
MerklePdp = 1
)
Variables ¶
This section is empty.
Functions ¶
func GetPdpVersionFromProof ¶
GetPdpVersionFromProof get pdp version from proof data
func GetPdpVersionFromUniqueId ¶
GetPdpVersionFromUniqueId get pdp version from uniqueId data
Types ¶
type Pdp ¶
type Pdp struct {
Version uint64
}
func (*Pdp) GenChallenge ¶
func (p *Pdp) GenChallenge(nodeId [20]byte, blockHash []byte, fileBlockNum uint64) ([]uint64, error)
GenChallenge compute the index to choose block
Click to show internal directories.
Click to hide internal directories.