Skip to content

Instantly share code, notes, and snippets.

View DariusParvin's full-sized avatar

Darius Parvin DariusParvin

  • University of California, Berkeley
  • Berkeley, California
View GitHub Profile
@DariusParvin
DariusParvin / gist:e2a557050371b276efbfd53b4b30ffc3
Last active September 29, 2021 17:59
bls12_381_fr smartpy vs testnet
import smartpy as sp
class ZkChannel(sp.Contract):
def __init__(self, revocation_lock: sp.TBls12_381_fr):
self.init(
revocation_lock = revocation_lock
)
@sp.entry_point
def merchDispute(self, revocation_secret):