Fix/nut 04 payment hash (#191)

* payment_hash -> hash

* add aes encryption

* urlsafe base64 for free

* move files to crypto

* use random hash instead of encryption

* get rid of useless code

* simplify
This commit is contained in:
callebtc
2023-05-04 00:12:18 +02:00
committed by GitHub
parent 84d2471902
commit e9f33337db
21 changed files with 99 additions and 927 deletions

View File

@@ -1,7 +1,7 @@
import pytest
from cashu.core.b_dhke import hash_to_curve, step1_alice, step2_bob, step3_alice
from cashu.core.secp import PrivateKey, PublicKey
from cashu.core.crypto.b_dhke import hash_to_curve, step1_alice, step2_bob, step3_alice
from cashu.core.crypto.secp import PrivateKey, PublicKey
def test_hash_to_curve():