Skip to content

CodeHawks-Contests/2025-07-secret-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

First Flight #46: Secret Vault on Aptos

Contest Details

Starts: August 14, 2025 Noon UTC

Ends: August 06, 2025 Noon UTC

Stats

  • nSLOC: 30
  • Complexity Score: 15

About

This will be the first in a series of First Flights featuring move on Aptos!

This challenge teaches several important security concepts:

  • How Move handles ownership
  • Understanding how Move handles account authentication differently from Solidity
  • Global storage vs contract storage
  • Resource safety implications
  • Event emission patterns

SecretVault is a Move smart contract application for storing a secret on the Aptos blockchain. Only the owner should be able to store a secret and then retrieve it later. Others should not be able to access the secret.

Roles

Owner - Only the owner may set and retrieve their secret

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • Aptos CLI
    • You'll know you did it right if you can run aptos --version and you see a response like aptos 3.x.x
  • Move

Quickstart

git clone https://github.com/CodeHawks-Contests/2025-07-secret-vault.git
cd 2025-07-secret-vault
aptos move compile --dev

Usage

Deploy (local)

  1. Start a local Aptos node
aptos node run-local-testnet --with-faucet
  1. Initialize your account
aptos init --profile local --network local
  1. Deploy
aptos move publish --profile local

Testing

aptos move test

Scope

  • In Scope:
./sources/
└── secret_vault.move
./Move.toml

Compatibilities

  • Move Version: Latest
  • Chain(s) to deploy contract to: Aptos Mainnet/Testnet
  • Aptos CLI Version: 3.x.x

Known Issues

No known issues reported.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages