Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Add Litecoin support, clean up Tron support #45

Merged
merged 1 commit into from
Sep 6, 2018
Merged

Conversation

alejandro-isaza
Copy link
Contributor

No description provided.

Copy link
Contributor

@vikmeup vikmeup left a comment

Choose a reason for hiding this comment

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

Looks good! I don't think we need test prefixes tho, I usually test on production

let publicKey = privateKey.publicKey(for: .tron, compressed: true) as! BitcoinPublicKey
let address = publicKey.address(prefix: Tron.MainNet.payToScriptHashAddressPrefix)

XCTAssert(address.description.hasPrefix("T"))
Copy link
Contributor

Choose a reason for hiding this comment

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

can we do full address equality? just in case

@alejandro-isaza alejandro-isaza merged commit 348cb59 into master Sep 6, 2018
@alejandro-isaza alejandro-isaza deleted the al/litecoin branch September 6, 2018 04:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants