createUnprovenDeployTxFromVerifierKeys
For the complete documentation index, see llms.txt
Midnight.js API Reference v4.1.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / createUnprovenDeployTxFromVerifierKeys
Function: createUnprovenDeployTxFromVerifierKeys()
Calls a contract constructor and creates an unbalanced, unproven, unsubmitted, deploy transaction from the constructor results.
Param
The verifier keys for the contract being deployed.
Param
The Zswap coin public key of the current user.
Param
Configuration.
Param
Remarks
The returned UnsubmittedDeployTxData is privacy-sensitive and carries the unproven transaction, signing key, initial private state, and initial Zswap state. See that type for handling guidance before logging, serializing, or transmitting the result.
Call Signature
createUnprovenDeployTxFromVerifierKeys<
C>(zkConfigProvider,coinPublicKey,options,encryptionPublicKey):Promise<UnsubmittedDeployTxData<C>>
Type Parameters
C
C extends Contract<undefined, Witnesses<undefined>>
Parameters
zkConfigProvider
ZKConfigProvider<string>
coinPublicKey
string
options
encryptionPublicKey
string
Returns
Promise<UnsubmittedDeployTxData<C>>
Call Signature
createUnprovenDeployTxFromVerifierKeys<
C>(zkConfigProvider,coinPublicKey,options,encryptionPublicKey):Promise<UnsubmittedDeployTxData<C>>
Type Parameters
C
C extends Any
Parameters
zkConfigProvider
ZKConfigProvider<string>
coinPublicKey
string
options
DeployTxOptionsWithPrivateState<C>
encryptionPublicKey
string
Returns
Promise<UnsubmittedDeployTxData<C>>