Skip to content

Instantly share code, notes, and snippets.

@ben-chain
Last active March 19, 2019 03:07
Show Gist options
  • Save ben-chain/74b4d04817dcf99586ad9c06bc44fab9 to your computer and use it in GitHub Desktop.
Save ben-chain/74b4d04817dcf99586ad9c06bc44fab9 to your computer and use it in GitHub Desktop.
public isRevoked(stateID: uint, commitment: commitment, revocationWitness: bytes):
assert wasCommitted(
... revocationWitness.newCommitment, revocationWitness.newCommitmentWitness)
assert verifySignature(
... revocationWitness.newCommitment) = commitment.state.owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment