BlockchainKeyEncode

BlockchainKeyEncode[key,form]

encodes a private or public key in the specified blockchain format.

Details and Options

Examples

open allclose all

Basic Examples  (11)

Encode a private key as a WIF-compressed format to be used in a transaction on the Bitcoin blockchain:

Encode a public key as a Pay-to-Public-Key-Hash Bitcoin address:

Encode a public key as an Ethereum address:

Encode a public key as an ARK address:

Encode a public key as a bloxberg address:

Encode an ed25519 public key as a Tezos address:

Encode a secp256k1 public key as a Tezos address:

Encode a prime256v1 public key as a Tezos address:

Encode an ed25519 public key as a Cardano enterprise address:

This is equivalent to explicitly specifying the key in the association:

Encode two ed25519 public keys (payment and stake keys) as a Cardano payment address:

Encode an ed25519 public key as a Cardano stake address:

Scope  (5)

Address  (1)

Encode a public key as an Ethereum address:

Hexadecimal string  (1)

Encode a hexadecimal private key string to an Ethereum address:

Private key  (1)

Encode a private key as a Bitcoin address:

Public key  (1)

Encode a public key as a Bitcoin address:

WIF  (1)

Encode a private key as a WIF-compressed format to be used in a transaction on the Bitcoin blockchain:

Options  (10)

BlockchainBase  (10)

ARK  (2)

Encode a public key as an ARK address:

Encode a public key as an ARK address:

Bitcoin  (2)

Encode a public key as a Bitcoin address:

Encode a public key as a Bitcoin testnet address:

Cardano  (1)

Encode two ed25519 public keys (payment and stake keys) as a Cardano payment address:

Ethereum  (1)

Encode a public key as an Ethereum address:

bloxberg  (1)

Encode a public key as a bloxberg address:

Tezos  (3)

Encode an ed25519 public key as a Tezos address:

Encode a secp256k1 public key as a Tezos address:

Encode a prime256v1 public key as a Tezos address:

Possible Issues  (2)

Encoding a public key as WIF format will return an error:

When encoding a hexadecimal string as a Tezos address, BlockchainKeyEncode will assume it is an ed25519 public key:

Wolfram Research (2019), BlockchainKeyEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html.

Text

Wolfram Research (2019), BlockchainKeyEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html.

CMS

Wolfram Language. 2019. "BlockchainKeyEncode." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html.

APA

Wolfram Language. (2019). BlockchainKeyEncode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html

BibTeX

@misc{reference.wolfram_2024_blockchainkeyencode, author="Wolfram Research", title="{BlockchainKeyEncode}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_blockchainkeyencode, organization={Wolfram Research}, title={BlockchainKeyEncode}, year={2019}, url={https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html}, note=[Accessed: 22-December-2024 ]}