user1053: I want to ensure a fixed supply of a native asset and this can be ensured by time locking of the policy id using the policy.script below:
    {
  "type": "all",
  "scripts":
  [
    {
      "type": "before",
      "slot": <insert slot here>
    },
    {
      "type": "sig",
      "keyHash": "insert keyHash here"
    }
  ]
}

The above format is created and run. Following error is shown
Syntax error in script: Error in $: "atLeast" script value not found

when the following command is run:
cardano-cli transaction policyid --script-file policy.script

Does anyone have a clue what is going wrong ? thanks.

user1231: Just make sure your keyHash is correctly generated.
cardano-cli address key-hash --payment-verification-key-file policy.vkey

I tried your script with correct values and it's working.

1053: <p>I want to ensure a fixed supply of a native asset and this can be ensured by time locking of the policy id using the policy.script below:</p>
<pre><code>    {
  &quot;type&quot;: &quot;all&quot;,
  &quot;scripts&quot;:
  [
    {
      &quot;type&quot;: &quot;before&quot;,
      &quot;slot&quot;: &lt;insert slot here&gt;
    },
    {
      &quot;type&quot;: &quot;sig&quot;,
      &quot;keyHash&quot;: &quot;insert keyHash here&quot;
    }
  ]
}
</code></pre>
<p>The above format is created and run. Following error is shown</p>
<pre><code>Syntax error in script: Error in $: &quot;atLeast&quot; script value not found
</code></pre>
<p>when the following command is run:</p>
<pre><code>cardano-cli transaction policyid --script-file policy.script
</code></pre>
<p>Does anyone have a clue what is going wrong ? thanks.</p>
 1231: <p>Just make sure your <code>keyHash</code> is correctly generated.</p>
<pre><code>cardano-cli address key-hash --payment-verification-key-file policy.vkey
</code></pre>
<p>I tried your script with correct values and it's working.</p>
