Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amos/query on testnet #3

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ wasm = "build --release --lib --target wasm32-unknown-unknown"
unit-test = "test --lib"
all-test = "test --workspace"
schema = "run --bin schema"

optimize = "run-script optimize"
[env]
RUSTFLAGS = "-C link-arg=-s"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
.DS_Store

# Generated by rust-optimizer
artifacts/
Expand Down
63 changes: 5 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions PROCESS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# PROCESS

## Step #1 Silver thread - POC
1. Create a GRPC to talk directly to the smart contract from the mobile.
2. Use the webauthn sign to sign the message and using the query get an ok on the transaction being signed.
1. We want to understand what the signed bytes are --
2. Use similar payload to one click trading but GRCP encoded and hit the node.

## Step #2 Scaffolding - MVP for passkeys
1. Write the authenticate function in the authenticator using the secp verify.
2. Integrate unit tests, make sure that it's as production ready
1. Define the authenticate params, that it is well documented and makes sense.
2. Generating r1 keys on the Rust side, and calling the sudo-authenticate function.
3. Spend some time on integration tests.
4. Spend time on unit test.
5. Code/pair/review with team memebers.
6. Ensure Contract API is satisfied -- authenticate/track/confirm_exection

## Step #3 E2E
1. (goland) Add Passkey authenticator to an address from
2. (mobile) execute signed swap messages in mobiles
1. query sqs node
2. get route
3. swap.
Loading