Source File
magic.go
Belonging Package
github.com/multiformats/go-multihash/core
package multihashimport// ErrSumNotSupported is returned when the Sum function code is not implementedvar ErrSumNotSupported = errors.New("no such hash registered")// ErrLenTooLarge is returned when the hash function cannot produce the requested number of bytesvar ErrLenTooLarge = errors.New("requested length was too large for digest")// constantsconst (IDENTITY = 0x00SHA1 = 0x11SHA2_224 = 0x1013SHA2_256 = 0x12SHA2_384 = 0x20SHA2_512 = 0x13SHA2_512_224 = 0x1014SHA2_512_256 = 0x1015SHA3_224 = 0x17SHA3_256 = 0x16SHA3_384 = 0x15SHA3_512 = 0x14KECCAK_224 = 0x1AKECCAK_256 = 0x1BKECCAK_384 = 0x1CKECCAK_512 = 0x1DBLAKE3 = 0x1ESHAKE_128 = 0x18SHAKE_256 = 0x19MURMUR3X64_64 = 0x22MD5 = 0xd5DBL_SHA2_256 = 0x56)
![]() |
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. |