ddk-manager 1.1.0

Creation and handling of Discrete Log Contracts (DLC).
Documentation
{
  "protocolVersion": 1,
  "contractFlags": 0,
  "chainHash": "06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f",
  "temporaryContractId": "f6a1b2841c93db06e94200b227bb4bdea83068efa557d68e14775237cbaab56a",
  "contractInfo": {
    "singleContractInfo": {
      "totalCollateral": 101000000,
      "contractInfo": {
        "contractDescriptor": {
          "numericOutcomeContractDescriptor": {
            "numDigits": 10,
            "payoutFunction": {
              "payoutFunctionPieces": [
                {
                  "endPoint": {
                    "eventOutcome": 0,
                    "outcomePayout": 0,
                    "extraPrecision": 0
                  },
                  "payoutCurvePiece": {
                    "polynomialPayoutCurvePiece": {
                      "payoutPoints": [
                        {
                          "eventOutcome": 3,
                          "outcomePayout": 90000000,
                          "extraPrecision": 0
                        }
                      ]
                    }
                  }
                },
                {
                  "endPoint": {
                    "eventOutcome": 5,
                    "outcomePayout": 101000000,
                    "extraPrecision": 0
                  },
                  "payoutCurvePiece": {
                    "polynomialPayoutCurvePiece": { "payoutPoints": [] }
                  }
                }
              ],
              "lastEndpoint": {
                "eventOutcome": 1023,
                "outcomePayout": 101000000,
                "extraPrecision": 0
              }
            },
            "roundingIntervals": {
              "intervals": [{ "beginInterval": 0, "roundingMod": 1 }]
            }
          }
        },
        "oracleInfo": {
          "single": {
            "oracleAnnouncement": {
              "announcementSignature": "9c7d22a2b3786629b65b8c396ce3357a540f3125aeec01375528c913ba1881a715f8c26c38c9d22ca8c1c69f13c6a9e18bafdfd5ad5b27615516799c4c4ff4a2",
              "oraclePublicKey": "5b94aa7c50c6ca446fdae1169467ba7ac0624e417ce65fe8064707813612c67b",
              "oracleEvent": {
                "oracleNonces": [
                  "4af63514427441f41cc73c054aaee60e2a914fbdc61e945eb4e2ba271d83ae6e",
                  "3a55b1aaf9dfa4e7810302a442ba793372d28c3c86f2f43643dcb022cac9bce6",
                  "aff9b70035c87aa556436a1a5d16736ea777c01a92b4992a5c2c0386e4eb4100",
                  "dcadb0ca409d2fe18985fda94043d7ac3c2cddf4fd03f1bdb424f2c7ce1f7ba1",
                  "49a68d39446a03816332d50e7b24d62dbc6ad3469bdb38c2a99ab36bf8bbf5af",
                  "078c217f97caab5e15447da95615ee9d45ddd1e1e514bbb025ff9f8bf3c3847e",
                  "6a719cfe63e0bf23a9bb846aa7f4eca824fd8a88861469bfd4e20e8811d2efc0",
                  "d501b11aa0f9380df55c597b635727af07ccbfe29b0f96910dedb87acdde4911",
                  "48255e98d603ab1ad08c5cf13d0ff4c2598dabaf729f06001af190737fc46de8",
                  "bfeabdea292a46fde4b4880a3bdb16dd02f13511bb9bbeb5d7fb22b6c395e020"
                ],
                "eventMaturityEpoch": 1623133104,
                "eventDescriptor": {
                  "digitDecompositionEvent": {
                    "base": 2,
                    "isSigned": false,
                    "unit": "sats/sec",
                    "precision": 0,
                    "nbDigits": 10
                  }
                },
                "eventId": "Test"
              }
            }
          }
        }
      }
    }
  },
  "fundingPubkey": "02556021f6abda2ae7a74d38a4e4a3b00c1dd648db96397dcd8642c3d0b0b139d1",
  "payoutSpk": "0014430af74f2f9dc88729fd02eaeb946fc161e2be1e",
  "payoutSerialId": 8165863461276958928,
  "offerCollateral": 90000000,
  "fundingInputs": [
    {
      "inputSerialId": 11632658032743242199,
      "prevTx": "02000000000101e79f7a30bb35206060eb09a99b6956bcdc7a1767b310c8dfde3595c69246a60e0000000000feffffff0200c2eb0b000000001600142a416c1e5f5e78bc6c518294fd1dd86b40eed2d77caf953e000000001600148e56705661334df89b2c1c7c4e41da9cef9eb38e0247304402201491f05ebe196b333420cbab3e7e7f3e431bfe91a42730cef9c6e64b0e8ff62302202c5fc79abbdb0a1c8ad422dbb97a54693feedc580f0cb7a62bdadaecbfc4f9430121035f57172a38f35f29f4357dcc2d24ea8e72638cf43190e4fdcb3f0ace215cfd5602020000",
      "prevTxVout": 0,
      "sequence": 4294967295,
      "maxWitnessLen": 107,
      "redeemScript": ""
    }
  ],
  "changeSpk": "001441ca183be469eab996f34ed31197a96b57f6050e",
  "changeSerialId": 16919534260907952016,
  "fundOutputSerialId": 5054305248376932341,
  "feeRatePerVb": 2,
  "cetLocktime": 1623133103,
  "refundLocktime": 1623737904,
  "keysId": [
    16, 175, 248, 204, 229, 173, 124, 107, 34, 204, 75, 138, 154, 151, 193, 8,
    142, 116, 180, 156, 90, 229, 80, 251, 77, 5, 215, 234, 70, 117, 68, 208
  ]
}