secure-treasure-chest

This commit is contained in:
Alexander Heldt
2025-11-08 20:54:55 +01:00
parent 589a3b886a
commit 172b59c404
10 changed files with 283 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Hints
## 1. Define the `TreasureChest` opaque type.
- Opaque types are defined using the `opaque` keyword.
## 2. Define the `create` function.
- The [`string.length` function][length] can be used to get the length of a string.
## 3. Define `open` function.
- The `==` operator can be used to compare two strings for equality.
[length]: https://hexdocs.pm/gleam_stdlib/gleam/string.html#length