Module ar_wallet.erl¶
Function Index¶
compress_ecdsa_pubkey/1* | |
hash_address/1* | |
hmac/1 | |
hmac/2 | |
load_key/1 | Read the keyfile for the key with the given address from disk. |
load_key/2 | Read the keyfile for the key with the given address from disk. |
load_keyfile/1 | Extract the public and private key from a keyfile. |
load_keyfile/2 | Extract the public and private key from a keyfile. |
new/0 | |
new/1 | |
new_keyfile/2 | Generate a new wallet public and private key, with a corresponding keyfile. |
sign/2 | Sign some data with a private key. |
sign/3 | sign some data, hashed using the provided DigestType. |
to_address/1 | Generate an address from a public key. |
to_address/2 | |
to_ecdsa_address/1* | |
to_pubkey/1 | Find a public key from a wallet. |
to_pubkey/2 | |
to_rsa_address/1* | |
verify/3 | Verify that a signature is correct. |
verify/4 | |
wallet_filepath/1* | |
wallet_filepath/3* | |
wallet_filepath2/1* | |
wallet_name/3* |
Function Details¶
compress_ecdsa_pubkey/1 *¶
compress_ecdsa_pubkey(X1) -> any()
hash_address/1 *¶
hash_address(PubKey) -> any()
hmac/1¶
hmac(Data) -> any()
hmac/2¶
hmac(Data, DigestType) -> any()
load_key/1¶
load_key(Addr) -> any()
Read the keyfile for the key with the given address from disk. Return not_found if arweave_keyfile_[addr].json or [addr].json is not found in [data_dir]/?WALLET_DIR.
load_key/2¶
load_key(Addr, Opts) -> any()
Read the keyfile for the key with the given address from disk. Return not_found if arweave_keyfile_[addr].json or [addr].json is not found in [data_dir]/?WALLET_DIR.
load_keyfile/1¶
load_keyfile(File) -> any()
Extract the public and private key from a keyfile.
load_keyfile/2¶
load_keyfile(File, Opts) -> any()
Extract the public and private key from a keyfile.
new/0¶
new() -> any()
new/1¶
new(KeyType) -> any()
new_keyfile/2¶
new_keyfile(KeyType, WalletName) -> any()
Generate a new wallet public and private key, with a corresponding keyfile. The provided key is used as part of the file name.
sign/2¶
sign(Key, Data) -> any()
Sign some data with a private key.
sign/3¶
sign(X1, Data, DigestType) -> any()
sign some data, hashed using the provided DigestType.
to_address/1¶
to_address(Pubkey) -> any()
Generate an address from a public key.
to_address/2¶
to_address(PubKey, X2) -> any()
to_ecdsa_address/1 *¶
to_ecdsa_address(PubKey) -> any()
to_pubkey/1¶
to_pubkey(Pubkey) -> any()
Find a public key from a wallet.
to_pubkey/2¶
to_pubkey(PubKey, X2) -> any()
to_rsa_address/1 *¶
to_rsa_address(PubKey) -> any()
verify/3¶
verify(Key, Data, Sig) -> any()
Verify that a signature is correct.
verify/4¶
verify(X1, Data, Sig, DigestType) -> any()
wallet_filepath/1 *¶
wallet_filepath(Wallet) -> any()
wallet_filepath/3 *¶
wallet_filepath(WalletName, PubKey, KeyType) -> any()
wallet_filepath2/1 *¶
wallet_filepath2(Wallet) -> any()
wallet_name/3 *¶
wallet_name(WalletName, PubKey, KeyType) -> any()