Liking cljdoc? Tell your friends :D

bips.bip32-utils


->32-bytesclj

(->32-bytes k)

Pad 0s into a private key to have 32 bytes.

Pad 0s into a private key to have 32 bytes.
sourceraw docstring

->33-bytesclj

(->33-bytes k)

Pad 0s into a private key to have 33 bytes.

Pad 0s into a private key to have 33 bytes.
sourceraw docstring

add-pointclj

(add-point Ki IL)

Add two points in the curve. Ki is a compressed public key. IL is a private key.

Add two points in the curve.
`Ki` is a compressed public key.
`IL` is a private key.
sourceraw docstring

compress-public-keyclj

(compress-public-key K)

Compress a public key K. Start with 02 if the Y part of the public key is even and 03 otherwise.

Compress a public key `K`.
Start with `02` if the Y part of the public key is even and `03` otherwise.
sourceraw docstring

CURVEclj

secp256k1 curve

secp256k1 curve
sourceraw docstring

CURVE_PARAMSclj

parameters of the secp256k1 curve

parameters of the secp256k1 curve
sourceraw docstring

decompressKeyclj

(decompressKey xBN yBit)

Decompress a compressed public key (x co-ord and low-bit of y-coord). xBN: public key in BigInteger format. yBit: parity bit 0x02 if the Y is even and 0x03 otherwise. Reference: https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/Sign.java#L208

Decompress a compressed public key (x co-ord and low-bit of y-coord).
`xBN`: public key in BigInteger format.
`yBit`: parity bit `0x02` if the Y is even and `0x03` otherwise.
Reference: `https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/Sign.java#L208`
sourceraw docstring

deserialize-base58clj

(deserialize-base58 encoded-key)

Deserialize a base58 encoded key.

Deserialize a base58 encoded key.
sourceraw docstring

encode-base58clj

(encode-base58 master-key)

Encode a serialized key into base58.

Encode a serialized key into base58.
sourceraw docstring

group-addclj

(group-add k-par IL)

Field addition of two numbers. The result is k-par + IL mod N.

Field addition of two numbers.
The result is `k-par` + `IL` mod `N`.
sourceraw docstring

hardenedclj

(hardened index)

Return the a hardened index.

Return the a hardened index.
sourceraw docstring

hardened?clj

(hardened? path-part)

Tell if part of a path is hardened (terminated by H).

Tell if part of a path is hardened (terminated by H).
sourceraw docstring

key-fingerprintclj

(key-fingerprint K)

Compute the fingerprint of a public key K. Reference: https://github.com/web3j/web3j/blob/49fe2c4e2d9d325ec465879736d6c384f41a4115/crypto/src/main/java/org/web3j/crypto/Bip32ECKeyPair.java#L131

Compute the fingerprint of a public key `K`.
Reference: `https://github.com/web3j/web3j/blob/49fe2c4e2d9d325ec465879736d6c384f41a4115/crypto/src/main/java/org/web3j/crypto/Bip32ECKeyPair.java#L131`
sourceraw docstring

key-identifierclj

(key-identifier K)

Compute the identifier of a public key K.

Compute the identifier of a public key `K`.
sourceraw docstring

legacy-addressclj

(legacy-address K network)

Encode a public key into a legacy Bitcoin address. K is the public key. network is either :mainnet or :testnet.

Encode a public key into a legacy Bitcoin address.
`K` is the public key.
`network` is either `:mainnet` or `:testnet`.
sourceraw docstring

pad-leading-zerosclj

(pad-leading-zeros n k)
source

private->public-keyclj

(private->public-key privKey)

Compute a public key from the given private key. Reference: https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/Sign.java#L322

Compute a public key from the given private key.
Reference: `https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/Sign.java#L322`
sourceraw docstring

private->public-pointclj

(private->public-point privKey)

Returns public key point from the given private key. Reference: https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/Sign.java#L335

Returns public key point from the given private key.
Reference: `https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/Sign.java#L335`
sourceraw docstring

serializeclj

(serialize network type depth fingerprint child-number chain-code key-data)

Serialize a key. Reference: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format

Serialize a key.
Reference: `https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format`
sourceraw docstring

serialize-base58clj

(serialize-base58 network
                  type
                  depth
                  fingerprint
                  child-number
                  chain-code
                  key-data)

Serialize a key into base58.

Serialize a key into base58.
sourceraw docstring

sha256hash160clj

(sha256hash160 input)

Calculates RIPEMD160(SHA256(input)). This is used in Address calculations. Reference: https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/core/Utils.java#L70

Calculates `RIPEMD160(SHA256(input))`. This is used in Address calculations.
Reference: `https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/core/Utils.java#L70`
sourceraw docstring

version-bytesclj

version bytes for encoding private/public keys

version bytes for encoding private/public keys
sourceraw docstring

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

× close