BlockchainKeyEncode

BlockchainKeyEncode[key,form]

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

Details and Options

Examples

open all close all

Basic Examples  (3)

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

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

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

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Encode a public key as an Ethereum address:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (2)

Introduced in 2019
(12.0)