everFinance / goar

Arweave http client and wallet implemented in go, Arweave SDK
Apache License 2.0
142 stars 45 forks source link

create arweave wallet account using go lang. #38

Closed bhaagiKenpachi closed 1 year ago

bhaagiKenpachi commented 2 years ago

Is it possible to create arweave wallet account ?. Below is the scenario.

User can provide seed phrase if exists or create a new seed phrase to create new arweave wallet account.

kevin-zhangzh commented 2 years ago

We have implement the creation of arweave wallet, you can create a keyfile through goar, the file name is the address corresponding to this keyfile, you can import it to other wallets like arconnect.(it's coming soon)

We cannot implement the seed phrase part for the following reasons:

The process of generating a RSA key pair from seed phrase is as follows: seed phrase -> random seed -> PRNG(pseudo random number generator)-> find p,q -> generate keyPair by p,q. We can be fully compatible with js in the first three steps, so we guess that the cause of this problem is that golang and js have slightly different implementations of finding large prime numbers p and q in the RSA algorithm. That's a big issue.

bhaagiKenpachi commented 2 years ago

@kevin-zhangzh Ok thanks for implementing. I'm good with the reasons.