chainline-contracts / chainline.contracts / HubContract / initialize

initialize

private fun initialize(walletScriptP1: ByteArray, walletScriptP2: ByteArray, walletScriptP3: ByteArray): Boolean (source)

Initializes the smart contract. This takes the three parts of the wallet script as arguments. These parts are stored and then used to verify the integrity of user wallets in the system.

Parameters

walletScriptP1 - part 1 of the wallet script code (code before the public key)

walletScriptP2 - part 2 of the wallet script code (code after the public key, before the script hash)

walletScriptP3 - part 3 of the wallet script code (code after the script hash)