mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 23:08:31 +01:00
more nits..
This commit is contained in:
parent
6319b1aeef
commit
8003ea1d18
1 changed files with 0 additions and 3 deletions
|
@ -71,11 +71,8 @@ class ECPrivateKeyTest extends FlatSpec with MustMatchers with BitcoinSLogger {
|
|||
it must "serialize a private key to WIF and then be able to deserialize it" in {
|
||||
val hex = "2cecbfb72f8d5146d7fe7e5a3f80402c6dd688652c332dff2e44618d2d3372"
|
||||
val privKey = ECPrivateKey(hex)
|
||||
require(privKey.isCompressed == true)
|
||||
val wif = privKey.toWIF(TestNet3)
|
||||
val privKeyFromWIF = ECPrivateKey.fromWIFToPrivateKey(wif)
|
||||
require(privKeyFromWIF.isCompressed == true)
|
||||
|
||||
privKeyFromWIF must be (privKey)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue