Bitcoin to ZClassic
This commit is contained in:
parent
2924ef7e30
commit
2faea7b5bd
|
@ -149,7 +149,7 @@ issue #3374. Users should upgrade to 3.0.5.
|
||||||
# Release 2.9 - Independence (July 27th, 2017)
|
# Release 2.9 - Independence (July 27th, 2017)
|
||||||
* Multiple Chain Validation: Electrum will download and validate
|
* Multiple Chain Validation: Electrum will download and validate
|
||||||
block headers sent by servers that may follow different branches
|
block headers sent by servers that may follow different branches
|
||||||
of a fork in the Bitcoin blockchain. Instead of a linear sequence,
|
of a fork in the ZClassic blockchain. Instead of a linear sequence,
|
||||||
block headers are organized in a tree structure. Branching points
|
block headers are organized in a tree structure. Branching points
|
||||||
are located efficiently using binary search. The purpose of MCV is
|
are located efficiently using binary search. The purpose of MCV is
|
||||||
to detect and handle blockchain forks that are invisible to the
|
to detect and handle blockchain forks that are invisible to the
|
||||||
|
@ -311,7 +311,7 @@ issue #3374. Users should upgrade to 3.0.5.
|
||||||
wallet that has several accounts. Make sure that you have saved
|
wallet that has several accounts. Make sure that you have saved
|
||||||
your seed phrase before you upgrade Electrum.
|
your seed phrase before you upgrade Electrum.
|
||||||
* This version introduces a separation between wallets types and
|
* This version introduces a separation between wallets types and
|
||||||
keystores types. 'Wallet type' defines the type of Bitcoin contract
|
keystores types. 'Wallet type' defines the type of ZClassic contract
|
||||||
used in the wallet, while 'keystore type' refers to the method used
|
used in the wallet, while 'keystore type' refers to the method used
|
||||||
to store private keys. Therefore, so-called 'hardware wallets' will
|
to store private keys. Therefore, so-called 'hardware wallets' will
|
||||||
be referred to as 'hardware keystores'.
|
be referred to as 'hardware keystores'.
|
||||||
|
@ -444,13 +444,13 @@ issue #3374. Users should upgrade to 3.0.5.
|
||||||
* Various GUI improvements
|
* Various GUI improvements
|
||||||
|
|
||||||
# Release 2.4
|
# Release 2.4
|
||||||
* Payment to DNS names storing a Bitcoin addresses (OpenAlias) is
|
* Payment to DNS names storing a ZClassic addresses (OpenAlias) is
|
||||||
supported directly, without activating a plugin. The verification
|
supported directly, without activating a plugin. The verification
|
||||||
uses DNSSEC.
|
uses DNSSEC.
|
||||||
* The DNSSEC verification code was rewritten. The previous code,
|
* The DNSSEC verification code was rewritten. The previous code,
|
||||||
which was part of the OpenAlias plugin, is vulnerable and should
|
which was part of the OpenAlias plugin, is vulnerable and should
|
||||||
not be trusted (Electrum 2.0 to 2.3).
|
not be trusted (Electrum 2.0 to 2.3).
|
||||||
* Payment requests can be signed using Bitcoin addresses stored
|
* Payment requests can be signed using ZClassic addresses stored
|
||||||
in DNS (OpenAlias). The identity of the requestor is verified using
|
in DNS (OpenAlias). The identity of the requestor is verified using
|
||||||
DNSSEC.
|
DNSSEC.
|
||||||
* Payment requests signed with OpenAlias keys can be shared as
|
* Payment requests signed with OpenAlias keys can be shared as
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 thomasv@gitorious
|
# Copyright (C) 2011 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -7,8 +7,8 @@ Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\" electrum-zclassic %u"
|
||||||
GenericName[en_US]=Zclassic Wallet
|
GenericName[en_US]=Zclassic Wallet
|
||||||
GenericName=Zclassic Wallet
|
GenericName=Zclassic Wallet
|
||||||
Icon=electrum-zclassic.png
|
Icon=electrum-zclassic.png
|
||||||
Name[en_US]=Electrum-Zclassic Bitcoin Wallet
|
Name[en_US]=Electrum-Zclassic Wallet
|
||||||
Name=Electrum-Zclassic Bitcoin Wallet
|
Name=Electrum-Zclassic Wallet
|
||||||
Categories=Finance;Network;
|
Categories=Finance;Network;
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
Terminal=false
|
Terminal=false
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2018 The Electrum developers
|
# Copyright (C) 2018 The Electrum developers
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
# obtaining a copy of this software and associated documentation files
|
# obtaining a copy of this software and associated documentation files
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
@ -569,7 +569,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
def show_about(self):
|
def show_about(self):
|
||||||
QMessageBox.about(self, "Electrum-Zclassic",
|
QMessageBox.about(self, "Electrum-Zclassic",
|
||||||
_("Version")+" %s" % (self.wallet.electrum_version) + "\n\n" +
|
_("Version")+" %s" % (self.wallet.electrum_version) + "\n\n" +
|
||||||
_("Electrum-Zclassic focus is speed, with low resource usage and simplifying Bitcoin. You do not need to perform regular backups, because your wallet can be recovered from a secret phrase that you can memorize or write on paper. Startup times are instant because it operates in conjunction with high-performance servers that handle the most complicated parts of the Bitcoin system." + "\n\n" +
|
_("Electrum-Zclassic focus is speed, with low resource usage and simplifying ZClassic. You do not need to perform regular backups, because your wallet can be recovered from a secret phrase that you can memorize or write on paper. Startup times are instant because it operates in conjunction with high-performance servers that handle the most complicated parts of the ZClassic system." + "\n\n" +
|
||||||
_("Uses icons from the Icons8 icon pack (icons8.com).")))
|
_("Uses icons from the Icons8 icon pack (icons8.com).")))
|
||||||
|
|
||||||
def show_report_bug(self):
|
def show_report_bug(self):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2013 ecdsa@github
|
# Copyright (C) 2013 ecdsa@github
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2014 Thomas Voegtlin
|
# Copyright (C) 2014 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2013 ecdsa@github
|
# Copyright (C) 2013 ecdsa@github
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2016 Thomas Voegtlin
|
# Copyright (C) 2016 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 thomasv@gitorious
|
# Copyright (C) 2011 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
@ -357,7 +357,7 @@ def base_encode(v, base):
|
||||||
result.append(chars[mod])
|
result.append(chars[mod])
|
||||||
long_value = div
|
long_value = div
|
||||||
result.append(chars[long_value])
|
result.append(chars[long_value])
|
||||||
# Bitcoin does a little leading-zero-compression:
|
# ZClassic does a little leading-zero-compression:
|
||||||
# leading 0-bytes in the input become leading-1s
|
# leading 0-bytes in the input become leading-1s
|
||||||
nPad = 0
|
nPad = 0
|
||||||
for c in v:
|
for c in v:
|
||||||
|
@ -905,7 +905,7 @@ def xpub_from_xprv(xprv):
|
||||||
|
|
||||||
|
|
||||||
def bip32_root(seed, xtype):
|
def bip32_root(seed, xtype):
|
||||||
I = hmac.new(b"Bitcoin seed", seed, hashlib.sha512).digest()
|
I = hmac.new(b"ZClassic seed", seed, hashlib.sha512).digest()
|
||||||
master_k = I[0:32]
|
master_k = I[0:32]
|
||||||
master_c = I[32:]
|
master_c = I[32:]
|
||||||
K, cK = get_pubkeys_from_secret(master_k)
|
K, cK = get_pubkeys_from_secret(master_k)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@ecdsa.org
|
# Copyright (C) 2012 thomasv@ecdsa.org
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 kyuupichan@gmail
|
# Copyright (C) 2015 kyuupichan@gmail
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 thomasv@gitorious
|
# Copyright (C) 2011 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2018 The Electrum developers
|
# Copyright (C) 2018 The Electrum developers
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Electrum - Lightweight Bitcoin Client
|
# Electrum - Lightweight ZClassic Client
|
||||||
# Copyright (c) 2015 Thomas Voegtlin
|
# Copyright (c) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
@ -132,4 +132,3 @@ class Contacts(dict):
|
||||||
if _type != 'address':
|
if _type != 'address':
|
||||||
data.pop(k)
|
data.pop(k)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2012 thomasv@gitorious
|
# Copyright (C) 2012 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 thomasv@gitorious
|
# Copyright (C) 2011 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2018 Thomas Voegtlin
|
# Copyright (C) 2018 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2016 The Electrum developers
|
# Copyright (C) 2016 The Electrum developers
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2014 Thomas Voegtlin
|
# Copyright (C) 2014 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Electrum - Lightweight Bitcoin Client
|
# Electrum - Lightweight ZClassic Client
|
||||||
# Copyright (c) 2011-2016 Thomas Voegtlin
|
# Copyright (c) 2011-2016 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 thomasv@gitorious
|
# Copyright (C) 2011 thomasv@gitorious
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Simple Bitcoin Payment Protocol messages
|
// Simple ZClassic Payment Protocol messages
|
||||||
//
|
//
|
||||||
// Use fields 1000+ for extensions;
|
// Use fields 1000+ for extensions;
|
||||||
// to avoid conflicts, register extensions via pull-req at
|
// to avoid conflicts, register extensions via pull-req at
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2014 Thomas Voegtlin
|
# Copyright (C) 2014 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2014 Thomas Voegtlin
|
# Copyright (C) 2014 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 Thomas Voegtlin
|
# Copyright (C) 2011 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
@ -36,7 +36,7 @@ import traceback
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
#
|
#
|
||||||
# Workalike python implementation of Bitcoin's CDataStream class.
|
# Workalike python implementation of ZClassic's CDataStream class.
|
||||||
#
|
#
|
||||||
from .keystore import xpubkey_to_address, xpubkey_to_pubkey
|
from .keystore import xpubkey_to_address, xpubkey_to_pubkey
|
||||||
from pyblake2 import blake2b
|
from pyblake2 import blake2b
|
||||||
|
@ -84,7 +84,7 @@ class BCDataStream(object):
|
||||||
# 0 to 252 : 1-byte-length followed by bytes (if any)
|
# 0 to 252 : 1-byte-length followed by bytes (if any)
|
||||||
# 253 to 65,535 : byte'253' 2-byte-length followed by bytes
|
# 253 to 65,535 : byte'253' 2-byte-length followed by bytes
|
||||||
# 65,536 to 4,294,967,295 : byte '254' 4-byte-length followed by bytes
|
# 65,536 to 4,294,967,295 : byte '254' 4-byte-length followed by bytes
|
||||||
# ... and the Bitcoin client is coded to understand:
|
# ... and the ZClassic client is coded to understand:
|
||||||
# greater than 4,294,967,295 : byte '255' 8-byte-length followed by bytes of string
|
# greater than 4,294,967,295 : byte '255' 8-byte-length followed by bytes of string
|
||||||
# ... but I don't think it actually handles any strings that big.
|
# ... but I don't think it actually handles any strings that big.
|
||||||
if self.input is None:
|
if self.input is None:
|
||||||
|
@ -403,7 +403,7 @@ def get_address_from_output_script(_bytes, *, net=None):
|
||||||
if match_decoded(decoded, match):
|
if match_decoded(decoded, match):
|
||||||
return TYPE_PUBKEY, bh2u(decoded[0][1])
|
return TYPE_PUBKEY, bh2u(decoded[0][1])
|
||||||
|
|
||||||
# Pay-by-Bitcoin-address TxOuts look like:
|
# Pay-by-ZClassic-address TxOuts look like:
|
||||||
# DUP HASH160 20 BYTES:... EQUALVERIFY CHECKSIG
|
# DUP HASH160 20 BYTES:... EQUALVERIFY CHECKSIG
|
||||||
match = [ opcodes.OP_DUP, opcodes.OP_HASH160, opcodes.OP_PUSHDATA4, opcodes.OP_EQUALVERIFY, opcodes.OP_CHECKSIG ]
|
match = [ opcodes.OP_DUP, opcodes.OP_HASH160, opcodes.OP_PUSHDATA4, opcodes.OP_EQUALVERIFY, opcodes.OP_CHECKSIG ]
|
||||||
if match_decoded(decoded, match):
|
if match_decoded(decoded, match):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2011 Thomas Voegtlin
|
# Copyright (C) 2011 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Electrum - Lightweight Bitcoin Client
|
# Electrum - Lightweight ZClassic Client
|
||||||
# Copyright (c) 2012 Thomas Voegtlin
|
# Copyright (c) 2012 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2014 Thomas Voegtlin
|
# Copyright (C) 2014 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2014 Thomas Voegtlin
|
# Copyright (C) 2014 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Electrum - Lightweight Bitcoin Client
|
# Electrum - Lightweight ZClassic Client
|
||||||
# Copyright (C) 2015 Thomas Voegtlin
|
# Copyright (C) 2015 Thomas Voegtlin
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2016 The Electrum developers
|
# Copyright (C) 2016 The Electrum developers
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
#
|
#
|
||||||
# Electrum - lightweight Bitcoin client
|
# Electrum - lightweight ZClassic client
|
||||||
# Copyright (C) 2016 The Electrum developers
|
# Copyright (C) 2016 The Electrum developers
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
name: electrum
|
name: electrum
|
||||||
version: master
|
version: master
|
||||||
summary: Bitcoin thin client
|
summary: ZClassic thin client
|
||||||
description: |
|
description: |
|
||||||
Lightweight Bitcoin client
|
Lightweight ZClassic client
|
||||||
|
|
||||||
grade: devel # must be 'stable' to release into candidate/stable channels
|
grade: devel # must be 'stable' to release into candidate/stable channels
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
|
Loading…
Reference in New Issue