chore: code format

This commit is contained in:
Vlad Stan 2022-10-12 08:03:23 +03:00
parent 8f40422f88
commit 6accf8f7ee
3 changed files with 14 additions and 16 deletions

View File

@ -1,5 +1,5 @@
import hashlib
import base64
import hashlib
from typing import List, Set
from .core.b_dhke import verify
@ -41,14 +41,12 @@ async def verify_proof(master_prvkey: str, proofs_used: Set[str], proof: Proof):
] # Get the correct key to check against
C = PublicKey(bytes.fromhex(proof.C), raw=True)
secret = base64.standard_b64decode(proof.secret)
print('### secret', secret)
print("### secret", secret)
validMintSig = verify(secret_key, C, secret)
if validMintSig != True:
raise Exception(f"tokens not valid. Secret: {proof.secret}")
def verify_split_amount(amount: int):
"""Split amount like output amount can't be negative or too big."""
try:

View File

@ -1089,7 +1089,7 @@ page_container %}
payload
)
newTokens.promises = data.snd;
newTokens.promises = data.snd
// console.log('split data', JSON.stringify(data.snd))
// for (let i =0 ;i < newTokens.length; i++) {
// Object.assign(newTokens[i], promises)