Source File
errata.go
Belonging Package
github.com/multiformats/go-multihash/core
package multihashimport ()type identityMultihash struct {bytes.Buffer}func (identityMultihash) () int {return 32 // A prefered block size is nonsense for the "identity" "hash". An arbitrary but unsurprising and positive nonzero number has been chosen to minimize the odds of fascinating bugs.}func ( *identityMultihash) () int {return .Len()}func ( *identityMultihash) ( []byte) []byte {return .Bytes()}type doubleSha256 struct {hash.Hash}func ( doubleSha256) ( []byte) []byte {= .Hash.Sum():= sha256.New().Write()return .Sum([0:0])}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |