Class HashLockedArkPaymentContract
public class HashLockedArkPaymentContract : ArkContract
- Inheritance
-
HashLockedArkPaymentContract
- Inherited Members
Constructors
HashLockedArkPaymentContract(OutputDescriptor, Sequence, OutputDescriptor, byte[], HashLockTypeOption)
public HashLockedArkPaymentContract(OutputDescriptor server, Sequence exitDelay, OutputDescriptor user, byte[] preimage, HashLockTypeOption hashLockType)
Parameters
serverOutputDescriptorexitDelaySequenceuserOutputDescriptorpreimagebyte[]hashLockTypeHashLockTypeOption
Fields
ContractType
public const string ContractType = "HashLockPaymentContract"
Field Value
Properties
DefaultScope
Hash-locked payment funds live off-chain as a VTXO.
public override ContractScope DefaultScope { get; }
Property Value
ExitDelay
public Sequence ExitDelay { get; }
Property Value
- Sequence
Hash
public byte[] Hash { get; }
Property Value
- byte[]
HashLockType
public HashLockTypeOption HashLockType { get; }
Property Value
Preimage
public byte[] Preimage { get; }
Property Value
- byte[]
Type
Contract type discriminator string (e.g. "vtxo", "boarding").
public override string Type { get; }
Property Value
User
Output descriptor for the user key.
public OutputDescriptor User { get; }
Property Value
Methods
CreateClaimScript()
public ScriptBuilder CreateClaimScript()
Returns
GetContractData()
Returns the key-value map of contract parameters used for serialization.
protected override Dictionary<string, string> GetContractData()
Returns
GetScriptBuilders()
Returns the script builders for each tapscript leaf in the tree.
protected override IEnumerable<ScriptBuilder> GetScriptBuilders()
Returns
Parse(Dictionary<string, string>, Network)
public static ArkContract Parse(Dictionary<string, string> contractData, Network network)
Parameters
contractDataDictionary<string, string>networkNetwork
Returns
UnilateralPath()
public ScriptBuilder UnilateralPath()