Liking cljdoc? Tell your friends :D

bips.bip32-utils


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.
raw 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.
raw docstring

CURVEclj

secp256k1 curve

secp256k1 curve
raw docstring

CURVE_PARAMSclj

parameters of the secp256k1 curve

parameters of the secp256k1 curve
raw 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`
raw docstring

deserialize-base58clj

(deserialize-base58 encoded-key)

Deserialize a base58 encoded key.

Deserialize a base58 encoded key.
raw docstring

encode-base58clj

(encode-base58 master-key)

Encode a serialized key into base58.

Encode a serialized key into base58.
raw 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`.
raw docstring

hardenedclj

(hardened index)

Return the a hardened index.

Return the a hardened index.
raw 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).
raw 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`
raw docstring

key-identifierclj

(key-identifier K)

Compute the identifier of a public key K.

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

legacy-addressclj

(legacy-address K network)

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

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

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`
raw 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`
raw docstring

private-key->32-bytesclj

(private-key->32-bytes k)

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

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

private-key->33-bytesclj

(private-key->33-bytes k)

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

Pad 0s into a private key to have 33 bytes.
raw 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`
raw 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.
raw 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`
raw docstring

version-bytesclj

version bytes for encoding private/public keys

version bytes for encoding private/public keys
raw docstring

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

× close