Refactor using of crypto functions #1796

Closed
g1itch wants to merge 14 commits from crypto into v0.6

14 Commits

Author SHA1 Message Date
803937290f
Started a dummy test for random keys in pyelliptic.ECC() 2021-12-15 22:13:52 +02:00
46c15e815d
Tests for keys generation
this implementation for deterministic keys requires a passphrase of type bytes
2021-12-15 22:13:52 +02:00
7e21dd7ca1
Define functions for generating keys in the highlevelcrypto 2021-12-15 22:13:52 +02:00
bbede1d449
A dummy test for randomBytes 2021-12-15 22:13:52 +02:00
f3ccc361fc
Move randomBytes to highlevelcrypto 2021-12-15 22:13:51 +02:00
b80fb5a675
Use proofofwork.trial_value() in tests.test_openclpow 2021-12-15 22:13:51 +02:00
659b292357
test_wif(): import from highlevelcrypto and add encoding checks 2021-12-15 22:13:51 +02:00
8942f63d06
Moved decodeWalletImportFormat() from shared to highlevelcrypto,
not addresses, where it's supposed to be because it uses
pyelliptic.arithmetic, addresses.decodeBase58() returns int which needs
to be encoded. Defined encodeWalletImportFormat() and replaced all uses.
2021-12-15 22:13:47 +02:00
15039cea94
The test 2021-12-15 22:11:57 +02:00
ba2d0e2687
Start adding hashes with double SHA512 2021-12-15 22:11:57 +02:00
07f815c28b
Add a test for WIF decoding 2021-12-15 22:11:57 +02:00
0290607538
Add tests for base58 and WIF decoding using pyelliptic.arithmetic 2021-12-15 22:11:57 +02:00
32e7e863f8
Don't use BMConfigParser in highlevelcrypto, instead use digestAlg kwarg 2021-12-15 22:11:57 +02:00
4b3c387634
Add a test for sign() and verify() 2021-12-15 22:11:57 +02:00