Liking cljdoc? Tell your friends :D

multihash.core

Core multihash type definition and helper methods.

Core multihash type definition and helper methods.
raw docstring

algorithmclj/s

(algorithm mhash)
source

algorithm-codesclj/s

Map of information about the available content hashing algorithms.

Map of information about the available content hashing algorithms.
sourceraw docstring

app-code?clj/s

(app-code? code)

True if the given code number is assigned to the application-specfic range. Returns nil if the argument is not an integer.

True if the given code number is assigned to the application-specfic range.
Returns nil if the argument is not an integer.
sourceraw docstring

base58clj/s

(base58 mhash)

Encodes a multihash into a Base-58 string.

Encodes a multihash into a Base-58 string.
sourceraw docstring

createclj/s

(create algorithm digest)

Constructs a new Multihash identifier. Accepts either a numeric algorithm code or a keyword name as the first argument. The digest may either by a byte array or a hex string.

Constructs a new Multihash identifier. Accepts either a numeric algorithm
code or a keyword name as the first argument. The digest may either by a byte
array or a hex string.
sourceraw docstring

Decodableclj/sprotocol

This protocol provides a method for data sources which a multihash can be read from.

This protocol provides a method for data sources which a multihash can be
read from.

decodeclj/s

(decode source)

Attempts to read a multihash value from the data source.

Attempts to read a multihash value from the data source.
sourceraw docstring

decode-arrayclj/s

(decode-array encoded)

Decodes a byte array directly into multihash. Throws ex-info with a :type of :multihash/bad-input if the data is malformed or invalid.

Decodes a byte array directly into multihash. Throws `ex-info` with a `:type`
of `:multihash/bad-input` if the data is malformed or invalid.
sourceraw docstring

digestclj/s

(digest mhash)
source

encodeclj/s

(encode mhash)

Encodes a multihash into a binary representation.

Encodes a multihash into a binary representation.
sourceraw docstring

get-algorithmclj/s

(get-algorithm value)

Looks up an algorithm by keyword name or code number. Returns nil if the value does not map to any valid algorithm.

Looks up an algorithm by keyword name or code number. Returns `nil` if the
value does not map to any valid algorithm.
sourceraw docstring

hexclj/s

(hex mhash)

Encodes a multihash into a hexadecimal string.

Encodes a multihash into a hexadecimal string.
sourceraw docstring

lengthclj/s

(length mhash)
source

Multihashcljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close