piece-verification
piece-verification is a through stream that verifies data against a set of SHA1 pieces. If the pieces don’t exactly match, an error will be emitted.
example
var http = var fs = var verify = // The pieces argument can either be an array of SHA1 strings// or a Buffer of concatenated binary SHA1s. http
api
piece-verification(
pieces (array[sha1_string, …] || buffer.concat[sha1_raw, …]) :
a collection of sha1 pieces
piece_length (number) :
the byte length that each piece represents
encoding (string) :
(optional) sha1 digest encoding used by pieces
)