[codex] add FlowChain local wallet envelopes#115
Draft
FlowmemoryAI wants to merge 1 commit into
Draft
Conversation
Owner
Author
|
HQ review blocker, 2026-05-14: before merge readiness review, please update the PR body to include the linked issue #100, allowed folders, forbidden folders, worktree path, and exact checks run with results. The current body names allowed folders and worktree, but it needs explicit forbidden-folder text plus local command evidence, including |
Owner
Author
|
HQ reconciliation note, 2026-05-14: GitHub now shows linked crypto/wallet issue #100 as closed. Before merge review, please either close this draft if it was superseded by merged main, or refresh the PR body with the exact remaining delta and a new/open issue reference for anything still needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #17, #40.
Summary
Adds the FlowChain private/local wallet and signing layer inside the existing
crypto/package. The PR defines canonical local transaction envelopes with domain separation, chain id, nonce, signer metadata, payload hash, validity window, and secp256k1 signature while preservingpayload.txfor the existing devnet transaction model.It also expands object identity and schema coverage for BridgeDeposit, BridgeCredit, BridgeWithdrawal, and LocalAccountBalance, adds local transaction and wallet public metadata schemas, and records the key/envelope decision in
docs/DECISIONS/.Scope
Allowed folders touched:
crypto/schemas/flowmemory/docs/DECISIONS/docs/FLOWCHAIN_TESTNET_ACCEPTANCE.mdForbidden implementation folders were not changed.
Worktree:
E:\FlowMemory\flowmemory-cryptoValidation
npm test --prefix cryptonpm run validate:vectors --prefix cryptonpm run validate:local-alpha --prefix cryptonpm run flowchain:full-smoke --prefix cryptonpm run flowchain:smokenpm run wallet:create --prefix crypto -- --vault .wallet/codex-test-wallet.local.json --label codex-test --forcenpm run wallet:sign --prefix crypto -- --vault .wallet/codex-test-wallet.local.json --out .wallet/codex-test-envelope.local.json --chain-id 31337npm run wallet:verify --prefix crypto -- --envelope .wallet/codex-test-envelope.local.json --chain-id 31337git diff --check HEAD~1..HEADnpm run flowchain:smokerequirednpm install --prefix apps/dashboardfirst because dashboard dependencies were missing locally.Notes And Follow-Ups
flowchain:initremains a follow-up; the existing root wrapper still writes ignored local operator metadata.HQ Required Review Metadata (2026-05-14)
Issue status: Original #100 lane is closed on GitHub; needs new/open issue if work remains
Worktree / branch ownership: E:\FlowMemory\flowmemory-crypto
Allowed folders: crypto/, schemas/flowmemory/, docs/DECISIONS/, docs/FLOWCHAIN_TESTNET_ACCEPTANCE.md
Forbidden folders: crates/, services/, contracts/, apps/dashboard/, hardware/, unrelated infra
Exact checks recorded:
HQ readiness: Draft; merge state DIRTY; close as superseded or refresh against current main and a new/open issue; coordinate bridge schemas with [codex] Build bridge relayer credit handoff smoke #113.