Skip to content

Commit

Permalink
Cleanup URLs in BrightID Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
apbendi committed Sep 4, 2020
1 parent 3884afa commit b3e55d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/dashboard/brightid_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import ed25519
from django.conf import settings

V5_URL = 'http://node.brightid.org/brightid/v5/operations'

def get_brightid_status(brightid_uuid):
brightIDUrl = 'http://node.brightid.org/brightid/v4/verifications/Gitcoin/' + str(brightid_uuid)

Expand Down Expand Up @@ -37,6 +35,8 @@ def get_brightid_status(brightid_uuid):
return 'unknown'

def assign_brightid_sponsorship(brightid_uuid):
brightIDv5OpUrl = 'http://node.brightid.org/brightid/v5/operations'

op = {
'name': 'Sponsor',
'app': 'Gitcoin',
Expand All @@ -50,7 +50,7 @@ def assign_brightid_sponsorship(brightid_uuid):
sig = signing_key.sign(message)
op['sig'] = base64.b64encode(sig).decode('ascii')

response = requests.post(V5_URL, json.dumps(op))
response = requests.post(brightIDv5OpUrl, json.dumps(op))

if 200 == response.status_code:
# {'data': {'hash': 'LVleLJw0siU7C47-MhpVXZTfhpJl2AXvNr-Vx2N11sI'}}
Expand Down

0 comments on commit b3e55d1

Please sign in to comment.