RSM Contracts

  1. it can be spent by the owner (Alice) only after it has reached maturity (some time has passed)
  2. it can be spent immediately by the other party (Bob) if he previously obtained from Alice a Revocation Key

Commitment Transactions

When a new Commitment Transaction is agreed then the old Commitment Transaction must be Revoked
  • spends from a 2–of-2 multisig (wrapped in a P2WSH), therefore it requires signatures from both parties (Alice and Bob) in order to unlock the funds
  • sends funds to both participants (except when the amount is below the dust limit)
Commitment Transaction
Alice (the owner) is delayed in getting the funds, giving Bob time to penalize her if he has a Revocation Key

Alice is the Owner

But Bob has the Revocation Key

2 <AlicePublicKey01> <BobPublicKey01> 2 OP_CHECKMULTISIG

Long Story Short

Revocation Improvements

<revocationpubkey> OP_CHECKSIG
revocationpubkey = AlicePublicKey01 + BobPublicKey01



Spending the Output

<local_delayedsig> <>
<revocation_sig> 1

Final Note

  • Alice is the owner of the Commitment Transaction and she can broadcast it
  • Alice can only spend the funds after a certain period (maturity)
  • Alice can revoke the Commitment Transaction by offering Bob a Revocation Key
  • Alice can be penalized (lose the funds) if she tries to spend a revoked transaction

Notes and References




I'm trying to understand this stuff myself

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Collect-to-Earn: Polychain Monsters Releases Collector Staking

Gods UnChained Team Exclusive Interview

Nebulas AMA Recap — November 11th, 2020

Scholar Talks — Liquidator

Hoo Research | A Pearl Dropped in the Token Ocean — Public blockchain events

VeChain Editorial: VeChain Joins The WWD Sustainable Fashion Alliance, Tackles National Double…

Visa, Paypal invest in Blockchain Capital’s $300 million fund

Essential Web3 Calls

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vlad Stan

Vlad Stan

I'm trying to understand this stuff myself

More from Medium

CryptoSanguo NFT Migration Instructions on Maze World 2.0

Introducing Leverage Interest Rate to Incentivize pBTC Stability

What is DegenMaxi (DMAX)?

How to Earn Interest on your BTC?