# Doubts about policy.script

**URL:** <https://forum.cardano.org/t/doubts-about-policy-script/127335>\
**Category:** Native Tokens\
**Created:** [2 February 2024 20:14 UTC](https://forum.cardano.org/t/doubts-about-policy-script/127335 "2024-02-02T20:14:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Endreas](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/endreas/32/74521_2.png) [@Endreas](https://forum.cardano.org/u/Endreas)\
**Post date:** [2 February 2024 20:14 UTC](https://forum.cardano.org/t/doubts-about-policy-script/127335/1 "2024-02-02T20:14:15Z")

</div>

I saw that it is possible to add more, or less information, to policy.script before creating the policyID for a token.

I’m talking about this while still in the directory, without touching the registry token yet.

Example:  
This is being created only with keyhash

> {  
> “keyHash”: “00000000000000000000000000”,  
> “type”: “sig”  
> }

This already has a slot date so you can no longer mint it after a certain period

> {  
> “scripts”: [  
> {  
> “keyHash”: “0000000000000000”,  
> “type”: “sig”  
> },  
> {  
> “slot”: 000000000,  
> “type”: “before”  
> }  
> ],  
> “type”: “all”  
> }

Could anyone point me to a guide with information that talks about everything I can add to policy.script, and what will influence the creation of the token.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [2 February 2024 22:21 UTC](https://forum.cardano.org/t/doubts-about-policy-script/127335/2 "2024-02-02T22:21:04Z")

</div>

Simple scripts are documented here: [https://github.com/IntersectMBO/cardano-node/blob/8.1.2/doc/reference/simple-scripts.md](https://github.com/IntersectMBO/cardano-node/blob/8.1.2/doc/reference/simple-scripts.md)

The basic possibilities you have already seen. There is not only `before`, but also `after`. And you not only have `all`, but also `any` and `atLeast`. You could also nest `all`, `any`, and `atLeast` to create more complicated structures – the transaction has to be after this slot, before this slot, and has to be signed by two of these three keys or this key.

You could also use full Plutus scripts instead of these simple scripts as policies which would then allow arbirtrary complicated logic like it is used in other smart contracts.

And, yes, of course that is before touching the token. Each change of the policy will change its hash value and the hash _is_ the policy ID. Different policy script means totally different token.

---

<div class="post-metadata">

**Author:** ![Endreas](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/endreas/32/74521_2.png) [@Endreas](https://forum.cardano.org/u/Endreas)\
**Post date:** [5 February 2024 11:23 UTC](https://forum.cardano.org/t/doubts-about-policy-script/127335/3 "2024-02-05T11:23:16Z")

</div>

Thanks man, this really helped.
