Type
CONTRACT
Validation date
2023-11-28 09:39:45 UTC
Fee
0 UCO

Code (307 B)

@version 1

condition triggered_by: transaction, on: update_state(_state), as: [
  previous_public_key: (
		# Transaction is not yet validated so we need to use previous address
		# to get the genesis address
		previous_address = Chain.get_previous_address()
		Chain.get_genesis_address(previous_address) == 0x00008dd22e7496e86901e9b276a1be6f9512eb09980cc04c7b76495ef37d5666a709
	)
]

actions triggered_by: transaction, on: update_state(state) do
  Contract.set_content Json.to_string(state)
end

export fun get_state() do
  Json.parse(contract.content)
end

Content (109 B)

{
  "charged_contracts": {
    "97": {
      "0x1be3d39b4082241367041619976f072f6fb20acc": 1701171540
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    0185FDD094689B8A3107BACBBADE1A3B224D9097E922C3DB03E926BF9A8115708DEA2ADF8B486BB087A70D02C1F30F154C3263C944D6525490BE394D

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

00015CE5415B13DD883F9EE5FE8C9E0B2A5B20E4B65169C53F3CECB38A9FA2105D86

Previous signature

55A9C5C75734F694F4BEC52A99BFB686F62D2D5AB5498DE34076F20CA314CA7147D2351DD2EAEF0AAB84BA49851C84A1C86AC706775EC3E1B429D8FAACC3AA04

Origin signature

30460221008E8272D7774F6DBCDAA5DFB91D4D8D2B5ACE03E3503BA26B27F24BFDCC885FBF022100F077AA398369A7AE5A45C8EB2F07B03DA1EFFBB5203272C90DC50E3CA95D0874

Proof of work

010104AB672F1E69B064D192819F1797C1926F158DBA8F3924AC732B4C4D70D0C8EA0A0D6506E5896C9C2524D2BE26CB5016287E1816A597C408008BA36FCB154A7765

Proof of integrity

00C4AE33435F0FDC6224B91E737A13750A81319F389C2D55F88718D93548AC6FDC

Coordinator signature

6ACFBA7A9AFA7BB92E53BB79F53BC2EBF33F7013ADE326929C739A390253D5E5A193EA14D1A233B6B9EC73EDF8E97AD8FF812F9947CB0B4B8D2B80072A3CFC02

Validator #1 public key

00011B58ED42235461734EAF253BD97A80B92899ABCC3BE680D44B6825DD2A88A947

Validator #1 signature

4FE1DA3ABAC99AB29294291726EBF72687A3369FCD9C4C64965FEDF23A8983C637665F141B25EB00E9D8F7BFDCF8F68AC53A480293F3898626586BAC284CBC0D

Validator #2 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #2 signature

4ADAD0E8D6D31988CC17D6ECC59CCADAD88F28C72A7B2B7B2FA49A96D52CAA9645F8F61B01CD363425917272470E1416C645332233C34B85133467F7BE74C60B