(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.
(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.
(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`
(deserialize-base58 encoded-key)
Deserialize a base58 encoded key.
Deserialize a base58 encoded key.
(encode-base58 master-key)
Encode a serialized key into base58.
Encode a serialized key into base58.
(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`.
(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).
(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`
(key-identifier K)
Compute the identifier of a public key K
.
Compute the identifier of a public key `K`.
(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`.
(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`
(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`
(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.
(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.
(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`
(serialize-base58 network
type
depth
fingerprint
child-number
chain-code
key-data)
Serialize a key into base58.
Serialize a key into base58.
(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`
version bytes for encoding private/public keys
version bytes for encoding private/public keys
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close