mirror of
https://github.com/monero-project/research-lab.git
synced 2024-12-23 03:59:40 +00:00
20 lines
574 B
Python
20 lines
574 B
Python
|
#use at your own risk
|
||
|
#Note, this is not quite working apparently,
|
||
|
#apparently the viewkeys from the main client and mymonero
|
||
|
#although, if they were derived consistently
|
||
|
#(which seems reasonable) then it should work
|
||
|
import MiniNero
|
||
|
import mnemonic
|
||
|
|
||
|
def importMM(wordlist):
|
||
|
print("for testing purposes only!")
|
||
|
sk = MiniNero.recoverSK(wordlist)
|
||
|
print("vk", vk)
|
||
|
print("pvk", MiniNero.publicFromSecret(vk))
|
||
|
key = mnemonic.mn_encode(sk)
|
||
|
cks = MiniNero.electrumChecksum(key)
|
||
|
print(key + " "+cks)
|
||
|
|
||
|
seed = raw_input("12 words?")
|
||
|
print(importMM(seed))
|