concatHex: Concatenate two hex strings

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/BtcAddresses.R

Description

This function concatenates two hex strings, provided without the 0x prefix, and returns a list object of the associated integers.

Usage

1
concatHex(hex1, hex2)

Arguments

hex1

character, a hex string.

hex2

character, a hex string.

Value

list

Author(s)

Bernhard Pfaff

References

https://en.bitcoin.it/wiki/Wallet_import_format,
https://en.bitcoin.it/wiki/Address

See Also

Other BtcAdresses: BTCADR-class, PrivKey2PubKey, PrivKey2Wif, PubHash2BtcAdr, PubKey2PubHash, Wif2PrivKey, base58CheckDecode, base58CheckEncode, createBtcAdr, createPrivateKey, decodeHex, hash160, hash256, validBtcAdr

Examples

1
2
3
4
suppressWarnings(RNGversion("3.5.0"))
h1 <- "80"
h2 <- createPrivateKey()
concatHex(h1, h2)

Example output

Warning message:
In createPrivateKey() : 
For exemplary purposes, only.
Use at your own risk!

 [1] 80 01 fb 5f 91 1e 0f 3b a9 dd ed 53 41 67 8e d9 61 f5 b9 61 cc 31 0f 4f db
[26] dc cd 60 4a 5a 2b 59 da

rbtc documentation built on May 2, 2019, 12:20 p.m.

Related to concatHex in rbtc...