Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement a simple public_key call for the keychain (no hd wallets yet) #18

Open
1 of 8 tasks
vladiuz1 opened this issue Jun 19, 2018 · 1 comment
Open
1 of 8 tasks
Assignees

Comments

@vladiuz1
Copy link
Contributor

vladiuz1 commented Jun 19, 2018

the public_key must be returned in one of these formats:

  • hex
  • base64
  • base58
  • wif (with optional params: --prefix, --compression, --version from this page.)

For wif (wallet import format) you shall use the following default option values:

--prefix      = ''
--version     = 0x80
--compression = 0x01

--hd option will return a hierachical deterministic public key derived from either saved public key [un]encrypted private key.

Another option to implement is --derive. This will return a public key derived from private key rather than returning the saved public key from wallet storage (derived during the creation of the key pair).

If this option is selected and the private key is encrypted such request will prompt user for password.

Once hierarchical deterministic wallets are ready, the --derive option will similarly derive the public key directly from private key rather than from saved public key in the wallet storage.

  • hex format
  • base64 format
  • wif format according to http://learnmeabitcoin.com/glossary/wif
  • --compression option for wif format
  • --version option for wif format
  • --prefix option for wif format
  • --hd option
  • --derive option
@roman-modelist-dev
Copy link
Contributor

Is it necessary to implement base64 and wif format, considering that we abandoned from the wif format in the array-core?
Also what about hd and derive options? Are these options related to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants