diff --git a/shared/challenges_markdown/one/part_one.md b/shared/challenges_markdown/one/part_one.md index f895c51..cc15301 100644 --- a/shared/challenges_markdown/one/part_one.md +++ b/shared/challenges_markdown/one/part_one.md @@ -18,13 +18,15 @@ writing code will also be a good exercise to get your feet wet. Some tools that - [http ref](https://docs.bsky.app/docs/category/http-reference) - You can also make calls directly to the PDS via HTTP endpoints. You will find most SDks match the naming conventions of the endpoints listed in the http ref. +--- + We are going to start simple. Everyone knows they have a handle, but `did` you know you also have a unique id called a [did](https://atproto.com/specs/did)? This is a unique identifier for your identity that never changes. This comes in two flavors for atproto [did:plc](https://web.plc.directory/) and [did:web](https://atproto.com/specs/did#did-web-in-at-protocol). Before you can make calls to the user's PDS you need to know their did as well as the DID doc. -But first the did. You can find the did from a handle in one of 2 ways. Via an HTTP request to the url +But first the `DID`. You can find the did from a handle in one of 2 ways. Via an HTTP request to the url `./well-known/atproto-did`, this is how the `.bsky.social` handles work. An example would @@ -32,7 +34,7 @@ be [jcsalterego.bsky.social/.well-known/atproto-did](https://jcsalterego.bsky.so DNS TXT record at `_atproto`. If your handle is `iloveatproto.com`, then it would be at `_atproto.iloveatproto.com`. If it was `alice.iloveatproto.com`, it would be at `_atproto.alice.iloveatproto.com`. -To complete the first challenge, please enter your did below in the input box. +To complete the first challenge, please enter your `DID` below in the input box. [//]: # (
) diff --git a/shared/src/advent/challenges/day_three/day_three.rs b/shared/src/advent/challenges/day_three/day_three.rs index 1f45a19..f91b692 100644 --- a/shared/src/advent/challenges/day_three/day_three.rs +++ b/shared/src/advent/challenges/day_three/day_three.rs @@ -50,7 +50,7 @@ impl AdventChallenge for DayThree { let car_base64 = if code != "Login to get a code" { let car_bytes = manufacture_car( - &("codes.advent.supersecret.verification".parse().unwrap()), + &("codes.advent.challenge.superSecretVerification".parse().unwrap()), &("1337".parse().unwrap()), &code, ) diff --git a/shared/src/advent/challenges/day_three/repo.rs b/shared/src/advent/challenges/day_three/repo.rs index a6e1a1f..ca53f2b 100644 --- a/shared/src/advent/challenges/day_three/repo.rs +++ b/shared/src/advent/challenges/day_three/repo.rs @@ -110,7 +110,7 @@ mod tests { #[tokio::test] async fn test_generate_car() { let car_bytes = manufacture_car( - &("codes.advent.supersecret.verification".parse().unwrap()), + &("codes.advent.challenge.superSecretVerification".parse().unwrap()), &("1337".parse().unwrap()), "ABCDE-FGHIJ", ) diff --git a/web/templates/index.askama.html b/web/templates/index.askama.html index e32e6da..f68bd52 100644 --- a/web/templates/index.askama.html +++ b/web/templates/index.askama.html @@ -5,6 +5,7 @@

Welcome to atproto advent! 🎄

Complete daily challenges throughout December March 27th to learn about the atprotocol.

+

at://advent is an atproto adventure to learn atproto in an interactive and hopefully fun way in the style of advent of code.