this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

clean up car gen error

phil 0881985f 668bdae2

+11 -1
+11 -1
shared/src/advent/challenges/day_three/repo.rs
··· 5 5 use atrium_repo::{Repository, blockstore::{CarStore, MemoryBlockStore}}; 6 6 use serde::Serialize; 7 7 8 + #[derive(Debug, thiserror::Error)] 9 + pub enum CarBuildError { 10 + #[error("Signing error: {0}")] 11 + Signing(#[from] atrium_crypto::Error), 12 + #[error("Repo error: {0}")] 13 + Repo(#[from] atrium_repo::repo::Error), 14 + #[error("CAR error: {0}")] 15 + Car(#[from] atrium_repo::blockstore::CarError), 16 + } 17 + 8 18 /// secret record type 9 19 #[derive(Debug, Serialize)] 10 20 #[serde(rename_all = "camelCase")] ··· 22 32 collection: &str, 23 33 rkey: &str, 24 34 record: ChallengeRecord, 25 - ) -> Result<Vec<u8>, Box<dyn std::error::Error>> { 35 + ) -> Result<Vec<u8>, CarBuildError> { 26 36 27 37 // throwaway (fake key hello) 28 38 let keypair = P256Keypair::import(&[1u8; 32])?;