@@ -55,7 +55,6 @@ You can then use the examples code to create assets (see examples directory):
5555 from os import getenv
5656
5757 from archivist.archivist import Archivist
58- from archivist.proof_mechanism import ProofMechanism
5958
6059
6160 def create_asset (arch ):
@@ -85,21 +84,13 @@ You can then use the examples code to create assets (see examples directory):
8584 # it does not start with arc_
8685 }
8786 #
88- # Select the mechanism used to prove evidence for the asset. If the selected proof
89- # mechanism is not enabled for your tenant then an error will occur.
90- # If unspecified then SIMPLE_HASH is used.
91- props = {
92- " proof_mechanism" : ProofMechanism.SIMPLE_HASH .name,
93- }
94-
95- # The first argument are the properties of the asset
96- # The second argument are the attributes of the asset
97- # The third argument is wait for confirmation:
87+ # The first argument are the attributes of the asset
88+ # The second argument is wait for confirmation:
9889 # If @confirm@ is True then this function will not
99- # return until the asset is confirmed on the blockchain and ready
90+ # return until the asset is confirmed and ready
10091 # to accept events (or an error occurs)
10192 #
102- return arch.assets.create(props = props, attrs = attrs, confirm = True )
93+ return arch.assets.create(attrs = attrs, confirm = True )
10394 # alternatively if some work can be done whilst the asset is confirmed then this call can be
10495 # replaced by a two-step alternative:
10596
@@ -131,9 +122,8 @@ You can then use the examples code to create assets (see examples directory):
131122 client_secret = tokenfile.read().strip()
132123
133124 # Initialize connection to Archivist. max_time is the time to wait for confirmation
134- # of an asset or event creation - the default is 1200 seconds but one can optionally
135- # specify a different value here particularly when creating assets on SIMPLE_HASH
136- # as confirmation times are much shorter in this case.
125+ # of an asset or event creation - the default is 300 seconds but one can optionally
126+ # specify a different value.
137127 with arch = Archivist(
138128 " https://app.datatrails.ai" ,
139129 (client_id, client_secret),
0 commit comments