Skip to content

feat: restore non-interactive #6

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

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

jaonoctus
Copy link
Owner

@jaonoctus jaonoctus commented Jan 18, 2023

$ nip06-cli restore --mnemonic "zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo wrong"

# mnemonic: zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo wrong
# hex private key: c26cf31d8ba425b555ca27d00ca71b5008004f2f662470f8c8131822ec129fe2
# hex public key: ed6b4c4479c2a9a74dc2fb0757163e25dc0a4e13407263952bfc6c56525f5cfd
# bech32 private key: nsec1cfk0x8vt5sjm24w2ylgqefcm2qyqqne0vcj8p7xgzvvz9mqjnl3qsp4lcr
# bech32 public key: npub1a445c3rec256wnwzlvr4w937yhwq5nsngpex89ftl3k9v5jltn7sx79usx

$ nip06-cli restore --mnemonic "zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo wrong" --passphrase "xxx"

# mnemonic: zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo wrong
# hex private key: e312dcc7a759c048bc56efc00fd13034b9d121710d2bb2a5a89bc77ee5624309
# hex public key: 9e3aed043c8035fb2092a1c053232b214e2ef84304372c521d678143d88bf619
# bech32 private key: nsec1uvfde3a8t8qy30zkalqql5fsxjuazgt3p54m9fdgn0rhaetzgvyst4ucrl
# bech32 public key: npub1ncaw6ppusq6lkgyj58q9xgety98za7zrqsmjc5sav7q58kyt7cvsgwxuds

@jaonoctus jaonoctus self-assigned this Jan 18, 2023
@jaonoctus jaonoctus merged commit b9d68fd into master Jan 18, 2023
@jaonoctus jaonoctus deleted the feat/restore-non-interactive branch January 18, 2023 23:05
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

Successfully merging this pull request may close these issues.

accept mnemonic as command option accept passphrase as command option
1 participant