### Add Aiken Standard Library Source: https://github.com/aiken-lang/stdlib/blob/main/README.md Install the Aiken Standard Library using the aiken CLI. Specify the desired version for your project. ```bash aiken add aiken-lang/stdlib --version v3 ``` -------------------------------- ### Aiken Hello World Validator Source: https://github.com/aiken-lang/stdlib/blob/main/README.md A simple Aiken validator that replicates a public/private signature lock. It requires the owner's VerificationKeyHash as datum, a specific message in the redeemer, and the owner's signature among extra signatories. ```aiken use aiken/collection/list use aiken/crypto.{VerificationKeyHash} use cardano/transaction.{OutputReference, Transaction} pub type Datum { owner: VerificationKeyHash, } pub type Redeemer { msg: ByteArray, } /// A simple validator which replicates a basic public/private signature lock. /// /// - The key (hash) is set as datum when the funds are sent to the script address. /// - The spender is expected to provide a signature, and the string 'Hello, World!' as message /// - The signature is implicitly verified by the ledger, and included as 'extra_signatories' /// validator hello_world { spend(datum: Option, redeemer: Redeemer, _, self: Transaction) { expect Some(Datum { owner }) = datum let must_say_hello = redeemer.msg == "Hello, World!" let must_be_signed = list.has(self.extra_signatories, owner) and { must_say_hello, must_be_signed, } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.