Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- validFingerprint :: Verifier -> Share -> Bool
- matchingCrypttextHashRoot :: Share -> Bool
- matchingBlockHashRoot :: Int -> Share -> Bool
- validShareRootHash :: [(Int, Share)] -> [Bool]
- showHashes :: (Show a, Show b) => [(a, b)] -> String
- showHash :: (Show a, Show b) => (a, b) -> String
- shareValidBlocks :: Share -> [Maybe ByteString]
- validSegment :: Digest' SHA256d -> Crypttext -> Maybe Crypttext
- validSegments :: [Digest' SHA256d] -> [Crypttext] -> [Maybe Crypttext]
Documentation
validFingerprint :: Verifier -> Share -> Bool Source #
Determine the validity of the given share's fingerprint as defined by the given capability.
matchingCrypttextHashRoot :: Share -> Bool Source #
True if the root of the crypttext hash tree in the share matches the crypttext hash root given in the URI extension block. False otherwise.
matchingBlockHashRoot :: Int -> Share -> Bool Source #
True if the share's own hash in the shareNeededHashes
list equals the
root of the share's block hash merkle tree, False otherwise.
validShareRootHash :: [(Int, Share)] -> [Bool] Source #
Determine the validity of each of the given shares' "share root hash" values with respect to the other shares in the list.
shareValidBlocks :: Share -> [Maybe ByteString] Source #
Get only and all the blocks from the given share with hashes that match the values in the Share's "block hash tree".