Skip to content

Commit

Permalink
Add exmaple values and recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 12, 2025
1 parent 7a82edc commit 559d9e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,6 @@ swap host:

cktap *args:
uv run cktap "$@"

satscard:
open "http://localhost:8000/satscard?u=S&o=0&r=a5x2tplf&n=7664168a4ef7b8e8&s=42b209c86ab90be6418d36b0accc3a53c11901861b55be95b763799842d403dc17cd1b74695a7ffe2d78965535d6fe7f6aafc77f6143912a163cb65862e8fb53"
18 changes: 5 additions & 13 deletions src/satscard.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
use super::*;

// todo:
// - https://getsatscard.com/start
// #u=S
// &o=0
// &r=a5x2tplf
// &n=7664168a4ef7b8e8
// &s=42b209c86ab90be6418d36b0accc3a53c11901861b55be95b763799842d403dc17cd1b74695a7ffe2d78965535d6fe7f6aafc77f6143912a163cb65862e8fb53

#[derive(Deserialize)]
pub(crate) struct Query {
pub(crate) u: String,
pub(crate) o: u64,
pub(crate) r: String,
pub(crate) n: String, // hex
pub(crate) s: String, // hex
pub(crate) u: String, // S
pub(crate) o: u64, // 0
pub(crate) r: String, // a5x2tplf, fingerprint?
pub(crate) n: String, // 7664168a4ef7b8e8, nonce?
pub(crate) s: String, // 42b209c86ab90be6418d36b0accc3a53c11901861b55be95b763799842d403dc17cd1b74695a7ffe2d78965535d6fe7f6aafc77f6143912a163cb65862e8fb53, address?
}

0 comments on commit 559d9e6

Please sign in to comment.