All shortsSurprise me
Play video: The XO engine creates keys

The XO engine creates keys

Watch on YouTube (opens in a new tab)
Space
Published
Length

Transcript

The locking script, it requires us to take a key pair and then hash the public key side and put inside of this lock script. But, when you go back and you look at the action, you will see that no such key was provided. So, where is this key going to come from? The engine is going to look at this owner key and it's going to look up the definition of this owner key and say, "Oh, okay. This is a private key and no one has provided this one to me." And then it's going to take your original seed, but the original entropy that you provided when you started up the engine, and it's just going to make a key. And then it's going to take this key and it's going to store it as part of its state and say, "Hey, this key is now mine forever and it's related to this specific template and this specific invitation." And then it's going to use that key to hash it over to get the hash so that it can create this lock script so that it can provide the lock script into the output so that it can provide the output into the transaction so that it can provide the transaction when it's time to execute this action.