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

Add provenance coin (HASH) to symbols.py #71

Open
wants to merge 82 commits into
base: master
Choose a base branch
from

Conversation

llama-del-rey
Copy link

No description provided.

meherett and others added 30 commits May 27, 2021 09:10
Fix: Incorrect output of Base58 decoding.
add ZECTEST, fix LTC/LTCTEST

Changed -> Litecoin (LTC) mainnet extend private key from `0x019d9cfe` to `0x488ade4` and public key from `0x019da462` to `0x488b21e` prefixes.
Corrected the spec link for BIP141.
@meherett
Copy link
Member

Hi @llama-del-rey, please import Provenance (HASH) wallet protocol https://github.com/meherett/python-hdwallet/blob/master/hdwallet/cryptocurrencies.py here.

@llama-del-rey
Copy link
Author

@meherett thank you for the quick turn around. I was trying to find out the correct values. I have pushed a change. But I am not sure if it is correct 😕

@llama-del-rey
Copy link
Author

Hi @meherett sorry but if and when you can review this please? 🙏

@@ -2753,6 +2753,44 @@ class HushMainnet(Cryptocurrency):
DEFAULT_PATH = f"m/44'/{str(COIN_TYPE)}/0'/0/0"
WIF_SECRET_KEY = 0x80

class HashMainnet(Cryptocurrency):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer you to change the class from HashMainnet to ProvenanceMainnet name.

@@ -2753,6 +2753,44 @@ class HushMainnet(Cryptocurrency):
DEFAULT_PATH = f"m/44'/{str(COIN_TYPE)}/0'/0/0"
WIF_SECRET_KEY = 0x80

class HashMainnet(Cryptocurrency):

NAME = "Hash"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also change this one Hash into Provenance name.

"P2WSH_IN_P2SH": None
})

MASSAGE_PREFIX = "\x18Bitcoin hash Signed Message:\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the message prefix is Bitcoin signing value, otherwise just set to None value.

NAME = "Hash"
SYMBOL = "HASH"
NETWORK = "mainnet"
SOURCE_CODE = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import Provenance github repo link (https://github.com/provenance-io/provenance) into source code.

@meherett
Copy link
Member

meherett commented Dec 1, 2022

@llama-del-rey and also add Provenance cryptocurrency into https://github.com/meherett/python-hdwallet#available-cryptocurrencies.

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.

10 participants