Jigs
Jigs are interactive objects on Bitcoin. You define a jig with a JavaScript class and that class determines exactly what the jig can do. All of your jigs are unique. Each one has an owner and only that owner can update the jig. How is that secured? Bitcoin! Let's explore how you create a jig.
Contents
Creating
Code
TODO
Updating
Jigs are updated by calling methods. In fact, this is the only way to update jigs. Your jig class defines the ways that your jig instances may evolve, so be sure to think ahead. When you call a method, Run publishes a Bitcoin transaction with data in an op_return that includes the method name and its arguments. The state may be recomputed simply by playing back every update one-by-one. For more information about how it works, see How It Works.
Code
TODO
Sending
Jigs may be sent to someone else by changing the owner property of a jig in a method. You can set the owner to a Bitcoin address, a public key, or a custom Lock. The new owner will be able to update the jig starting in the next transaction.
Code
TODO
Syncing
Code
TODO
Interactivity
Code
TODO
Destroying
Code
TODO
Backing
Code
TODO
Checking Parameters
Code
TODO
Attaching Media
Code
TODO
Updating
Code
TODO