Liking cljdoc? Tell your friends :D

fluree.crypto


account-id-from-messageclj/s

(account-id-from-message message signature)

Given a message and signature, returns the corresponding account id only if the signature is valid. If invalid, will throw exception.

Given a message and signature, returns the corresponding account id
only if the signature is valid. If invalid, will throw exception.
raw docstring

account-id-from-privateclj/s


account-id-from-publicclj/s

(account-id-from-public public-key)

aes-decryptclj/s

(aes-decrypt x iv key)
(aes-decrypt x iv key output-format)
(aes-decrypt x iv key output-format input-format)

aes-encryptclj/s

(aes-encrypt x iv key)
(aes-encrypt x iv key output-format)

byte-array->stringclj/s

(byte-array->string s)

generate-key-pairclj/s

(generate-key-pair)
(generate-key-pair private)

generateKeyPaircljs

(generateKeyPair)
(generateKeyPair private)

normalize-stringclj/s

(normalize-string s)

Normalizes string for consistent hashing.

Normalizes string for consistent hashing.
raw docstring

pub-key-from-messageclj/s

(pub-key-from-message message signature)

Returns public key, and verifies message is correctly signed. If not correctly signed, throws exception.

Returns public key, and verifies message is correctly signed.
If not correctly signed, throws exception.
raw docstring

pub-key-from-privateclj/s

(pub-key-from-private private-key)

Take a private key as either a hex string or BigInteger (clj) bignumber (cljs), returns as a hex string.

Take a private key as either a hex string or BigInteger (clj) bignumber (cljs), returns as a hex string.
raw docstring

random-bytesclj/s

(random-bytes n)

Generates n random bytes.

Generates n random bytes.
raw docstring

ripemd-160clj/s

(ripemd-160 x)
(ripemd-160 x output-format)
(ripemd-160 x output-format input-format)

scrypt-checkclj/s

(scrypt-check message encrypted & args)

Compares a message (string) with previously encrypted message (hex).

Compares a message (string) with previously encrypted message (hex). 
raw docstring

scrypt-encryptclj/s

(scrypt-encrypt message & args)

Encrypts a message (string) using a salt (bytes). Returns the encrypted message in hex.

Encrypts a message (string) using a salt (bytes). Returns the encrypted message in hex.
raw docstring

sha2-256clj/s

(sha2-256 x)
(sha2-256 x output-format)
(sha2-256 x output-format input-format)

sha2-256-normalizeclj/s

(sha2-256-normalize s)
(sha2-256-normalize s output-format)

sha2-256 hash of provided string after normalizing string.

sha2-256 hash of provided string after normalizing string.
raw docstring

sha2-512clj/s

(sha2-512 x)
(sha2-512 x output-format)
(sha2-512 x output-format input-format)

sha2-512-normalizeclj/s

(sha2-512-normalize s)
(sha2-512-normalize s output-format)

sha2-512 hash of provided string after normalizing string.

sha2-512 hash of provided string after normalizing string.
raw docstring

sha3-256clj/s

(sha3-256 x)
(sha3-256 x output-format)
(sha3-256 x output-format input-format)

sha3-256-normalizeclj/s

(sha3-256-normalize s)
(sha3-256-normalize s output-format)

sha3-256 hash of provided string after normalizing string.

sha3-256 hash of provided string after normalizing string.
raw docstring

sha3-512clj/s

(sha3-512 x)
(sha3-512 x output-format)
(sha3-512 x output-format input-format)

sha3-512-normalizeclj/s

(sha3-512-normalize s)
(sha3-512-normalize s output-format)

sha3-512 hash of provided string after normalizing string.

sha3-512 hash of provided string after normalizing string.
raw docstring

sign-messageclj/s

(sign-message message private-key)

Sign some message with provided private key. Message must be a byte-array or string. Private key must be hex-encoded or a BigInteger(clj)/bignumber(cljs).

Sign some message with provided private key.
Message must be a byte-array or string.
Private key must be hex-encoded or a BigInteger(clj)/bignumber(cljs).
raw docstring

string->byte-arrayclj/s

(string->byte-array s)

Normalizes string then converts to a byte-array. If value is already a byte-array, returns original value.

Normalizes string then converts to a byte-array.
If value is already a byte-array, returns original value.
raw docstring

verify-signatureclj/s

(verify-signature pub-key message signature)

Verifies signature of message is valid.

Verifies signature of message is valid.
raw docstring

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

× close