mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 12:35:51 +00:00
8b12934fe2
Wiring in slots builder functionality into `requestStorage`
9 lines
178 B
Nim
9 lines
178 B
Nim
|
|
from pkg/libp2p import MultiHash
|
|
|
|
func digestBytes*(mhash: MultiHash): seq[byte] =
|
|
## Extract hash digestBytes
|
|
##
|
|
|
|
mhash.data.buffer[mhash.dpos..<mhash.dpos + mhash.size]
|