Skip to content

Commit

Permalink
tmp try ecdsa as default new wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Berman committed Jan 8, 2025
1 parent f1bef37 commit 0953c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/arweave/src/ar_wallet.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

%% @doc Generate a new wallet public key and private key.
new() ->
new(?DEFAULT_KEY_TYPE).
new(?ECDSA_KEY_TYPE).
new(KeyType = {KeyAlg, PublicExpnt}) when KeyType =:= {?RSA_SIGN_ALG, 65537} ->
{[_, Pub], [_, Pub, Priv|_]} = {[_, Pub], [_, Pub, Priv|_]}
= crypto:generate_key(KeyAlg, {?RSA_PRIV_KEY_SZ, PublicExpnt}),
Expand All @@ -40,7 +40,7 @@ new_ecdsa() ->

%% @doc Generate a new wallet public and private key, with a corresponding keyfile.
new_keyfile() ->
new_keyfile(?DEFAULT_KEY_TYPE, wallet_address).
new_keyfile(?ECDSA_KEY_TYPE, wallet_address).

new_keyfile(KeyType) ->
new_keyfile(KeyType, wallet_address).
Expand Down

0 comments on commit 0953c65

Please sign in to comment.