Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
edc3cab
feat(truapi): resolve a Trinity stack from a signed descriptor
Mikelle Nov 6, 2026
8b86fe3
feat(truapi)!: take chain config from the Trinity stack
Mikelle Nov 6, 2026
7c2bbcd
feat(cli)!: hand the core the stack the CLI resolved
Mikelle Nov 6, 2026
b9ab949
feat(truapi-host)!: take the stack in ProductRuntimeConfig
Mikelle Nov 6, 2026
121b053
feat(ios)!: bundle each build's Trinity stack
Mikelle Nov 6, 2026
1f638d0
feat(android)!: bundle each build's Trinity stack
Mikelle Nov 6, 2026
8bb6982
refactor(truapi): share the stack's reserved-genesis check and type i…
Mikelle Nov 6, 2026
268aa74
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 6, 2026
0e8937f
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 6, 2026
9d2194e
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 6, 2026
52a9dac
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 6, 2026
fd9ffcb
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 6, 2026
93b1c4f
refactor(truapi): name descriptor roles through ChainIdentifier
Mikelle Nov 6, 2026
f9bb621
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 6, 2026
088a742
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 6, 2026
c08b72a
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 6, 2026
16ee8c5
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 6, 2026
ad75e78
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 6, 2026
e81564c
refactor(truapi): tighten the stack config's docs, errors and test fi…
Mikelle Nov 6, 2026
178f1ae
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 6, 2026
fd9b83f
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 6, 2026
61ad69b
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 6, 2026
5436e8e
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 6, 2026
0a08d50
docs(truapi): shorten the stack section of RUNTIME.md and the README
Mikelle Nov 6, 2026
b4fed10
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 6, 2026
c18b83f
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 6, 2026
cd3554b
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 6, 2026
aae616b
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 6, 2026
16bd425
refactor(cli): answer feature_supported from the stack's genesis hashes
Mikelle Nov 6, 2026
55eed49
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 6, 2026
35a21b9
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 6, 2026
345d0ce
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 6, 2026
33cf760
docs(cli): shorten the core_stack doc
Mikelle Nov 7, 2026
1bc2e52
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 7, 2026
0e57e71
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 7, 2026
5a48a1c
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 7, 2026
e66c2f5
refactor(truapi-host): name a fixture chain's role once
Mikelle Nov 7, 2026
9a8f030
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 7, 2026
07c947b
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 7, 2026
7c52a93
chore(ios): refresh the app's stack copies with the CLI's
Mikelle Nov 7, 2026
db848e6
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 7, 2026
456654d
chore(android): refresh the app's stack copies with the CLI's
Mikelle Nov 7, 2026
3c29ab6
Merge remote-tracking branch 'origin/main' into feat/stack-1-type
Mikelle Nov 9, 2026
52fd313
docs(truapi): say plainly what the stack module does
Mikelle Nov 9, 2026
46e1a95
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
b7d3173
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
5960e5b
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
fb91fef
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
c98e838
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
404bfdb
docs(truapi): shorten Stack::bundled's doc
Mikelle Nov 9, 2026
d62901a
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
13bc06c
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
3f0abb2
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
35dbc3e
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
7839e6c
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
c5e74c8
docs(truapi): say what the mock's served_chains is for
Mikelle Nov 9, 2026
d8301f9
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
b434ad1
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
27c0843
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
34eddb5
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
37bee4d
docs(truapi): say what a stack without Asset Hub refuses
Mikelle Nov 9, 2026
9741897
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
e01eb58
docs(truapi): leave the chain roles to StackChains
Mikelle Nov 9, 2026
edaa5ad
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
8365378
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
5806043
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
ce4adef
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
cea73ed
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
4efa8ad
docs(truapi-host): list the stack's fields in the README
Mikelle Nov 9, 2026
e3fa0ec
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
08b7fac
feat(ios): read each stack's pointer from its bundled link
Mikelle Nov 9, 2026
a706ac1
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
b4a57da
feat(android): read each stack's pointer from its bundled link
Mikelle Nov 9, 2026
ff3d32d
Merge remote-tracking branch 'origin/main' into feat/stack-1-type
Mikelle Nov 9, 2026
38adeb9
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
271ce1e
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
ef9d792
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
218be2c
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
01bed92
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
e3ca6ab
docs(android): say why the runtime's TLD lookup can reuse a saved value
Mikelle Nov 9, 2026
019c25e
refactor(truapi): keep Polkadot's genesis hashes as bytes, test the s…
Mikelle Nov 9, 2026
8d9a728
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
5d54e9f
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
b2a61b4
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
8863ab2
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
c6a766c
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
537f836
refactor(truapi): derive ChainIdentifier's descriptor role with strum
Mikelle Nov 9, 2026
91d9ff9
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
ca2c077
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
19c1daf
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
39949f3
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
bb3ba05
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
0c4f5f3
Merge remote-tracking branch 'origin/main' into feat/stack-1-type
Mikelle Nov 9, 2026
b9fde8b
Merge branch 'feat/stack-1-type' into feat/stack-2-core
Mikelle Nov 9, 2026
ff9c0f0
Merge branch 'feat/stack-2-core' into feat/stack-3-cli
Mikelle Nov 9, 2026
a1b2eb7
Merge branch 'feat/stack-3-cli' into feat/stack-4-js
Mikelle Nov 9, 2026
45c057b
Merge branch 'feat/stack-4-js' into feat/stack-5-ios
Mikelle Nov 9, 2026
80a9cdc
Merge branch 'feat/stack-5-ios' into feat/stack-6-android
Mikelle Nov 9, 2026
53b344c
fix(truapi): refuse a stack with an all-zero Relay or Asset Hub hash
Mikelle Nov 9, 2026
2fe1a14
Merge branch 'sync/stack-1-type' into sync/stack-2-core
Mikelle Nov 9, 2026
dfa1dab
Merge branch 'sync/stack-2-core' into sync/stack-3-cli
Mikelle Nov 9, 2026
7003c3a
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 9, 2026
f707250
fix(truapi-host): type the test host's runtimeConfig override
Mikelle Nov 9, 2026
648bbc3
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 9, 2026
4c2cbaa
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 9, 2026
3f0384e
Merge remote-tracking branch 'origin/main' into sync/stack-1-type
Mikelle Nov 9, 2026
136dd3e
Merge branch 'sync/stack-1-type' into sync/stack-2-core
Mikelle Nov 9, 2026
c93b604
Merge branch 'sync/stack-2-core' into sync/stack-3-cli
Mikelle Nov 9, 2026
98c7944
Merge branch 'sync/stack-1-type' into sync/stack-2-core
Mikelle Nov 9, 2026
73716da
docs(truapi): name the peopl identity account in the stack's TLD doc
Mikelle Nov 9, 2026
bea1fce
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 9, 2026
6032e43
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 9, 2026
ec5dc6b
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 9, 2026
2e094ce
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 10, 2026
d38a3ac
refactor(cli): keep the bundled stacks in a top-level stacks/ directory
Mikelle Nov 10, 2026
7d09912
test(truapi-host): read the bundled test stack from stacks/
Mikelle Nov 10, 2026
19901f5
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 10, 2026
f7772ed
refactor(ios): bundle the stacks from the repository's stacks/ directory
Mikelle Nov 10, 2026
4405b0e
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 10, 2026
f948bb3
refactor(android): sync the stacks from the core checkout's stacks/ d…
Mikelle Nov 10, 2026
d907bcd
refactor(truapi): import the feature-support types from latest
Mikelle Nov 10, 2026
d591ad1
Merge branch 'sync/stack-2-core' into sync/stack-3-cli
Mikelle Nov 10, 2026
ba68085
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 10, 2026
7bee28e
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 10, 2026
0c26f64
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 10, 2026
0f6014c
Merge remote-tracking branch 'origin/main' into sync/stack-1-type
Mikelle Nov 10, 2026
b9f23a4
Merge branch 'sync/stack-1-type' into sync/stack-2-core
Mikelle Nov 10, 2026
5e45b69
Merge branch 'sync/stack-2-core' into sync/stack-3-cli
Mikelle Nov 10, 2026
dacd85f
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 10, 2026
151bd76
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 10, 2026
a330ef1
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 10, 2026
fe3c158
refactor(truapi): reach core storage through the stack
Mikelle Nov 10, 2026
f66d62f
feat(truapi)!: give a stack its identity and generation
Mikelle Nov 10, 2026
a85eaa9
test(truapi): import the storage test helpers instead of spelling the…
Mikelle Nov 10, 2026
7368c2d
test(truapi): keep the signing host test imports together
Mikelle Nov 10, 2026
c0e2630
docs(truapi): say the stack identity docs plainly
Mikelle Nov 10, 2026
88d6d5f
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 10, 2026
e07cc1f
docs(truapi): say the storage handle docs plainly
Mikelle Nov 10, 2026
c2d1d06
Merge remote-tracking branch 'origin/main' into feat/stack-1-type
Mikelle Nov 11, 2026
f1aa6b7
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 11, 2026
9b1fc8c
Merge branch 'sync/stack-1-type' into sync/stack-2-core
Mikelle Nov 11, 2026
07a7923
Merge branch 'sync/stack-2-core' into sync/stack-3-cli
Mikelle Nov 11, 2026
10b1c7c
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 11, 2026
63c0ad5
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 11, 2026
ccb69a8
fix(truapi-host): give the Node entry the stack and its served chains
Mikelle Nov 11, 2026
2c8cc7c
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 11, 2026
41e378d
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 11, 2026
ecac261
Merge remote-tracking branch 'origin/main' into feat/stack-2-core
Mikelle Nov 11, 2026
57a2d3d
Merge branch 'sync/stack-2-core' into sync/stack-3-cli
Mikelle Nov 11, 2026
6d3dc5e
Merge branch 'sync/stack-3-cli' into sync/stack-4-js
Mikelle Nov 11, 2026
758bbd4
Merge branch 'sync/stack-4-js' into sync/stack-5-ios
Mikelle Nov 11, 2026
bd42154
Merge branch 'sync/stack-5-ios' into sync/stack-6-android
Mikelle Nov 11, 2026
01eb8a1
Merge remote-tracking branch 'origin/main' into feat/stack-2-core
Mikelle Nov 11, 2026
d2a4f20
test(truapi): build the footer card tests' services from the stack
Mikelle Nov 11, 2026
0f49b59
Merge branch 'feat/stack-2-core' into feat/stack-7-identity
Mikelle Nov 11, 2026
043022d
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 11, 2026
d1873e8
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 11, 2026
7ca279b
Merge branch 'sync/s7' into sync/s8
Mikelle Nov 11, 2026
0f83aeb
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 12, 2026
ddae1d7
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 12, 2026
3014342
fix(truapi): refuse a stack with no id, and give each local descripto…
Mikelle Nov 12, 2026
2d2535e
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 12, 2026
15e2cb8
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 16, 2026
6dc37c0
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 16, 2026
975aeeb
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 16, 2026
480d887
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 16, 2026
44111a9
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 16, 2026
85cc00a
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 16, 2026
865daa8
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 16, 2026
493e720
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 16, 2026
534e5f1
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 16, 2026
0a30e1e
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 16, 2026
26ca6ee
fix(truapi): state the stack identity contract and derive test genera…
Mikelle Nov 16, 2026
3851ba4
Merge remote-tracking branch 'origin/feat/stack-7-identity' into HEAD
Mikelle Nov 16, 2026
e4b1ddc
refactor(truapi): reach stack storage through RuntimeServices
Mikelle Nov 16, 2026
365e35c
fix(truapi): format the mock stack, case-fold test generations, name …
Mikelle Nov 16, 2026
37688f7
Merge remote-tracking branch 'origin/feat/stack-7-identity' into HEAD
Mikelle Nov 16, 2026
cbfc123
style(truapi): format the storage call chains
Mikelle Nov 16, 2026
b9766c0
Merge remote-tracking branch 'origin/main' into HEAD
Mikelle Nov 16, 2026
4824210
Merge remote-tracking branch 'origin/feat/stack-7-identity' into HEAD
Mikelle Nov 16, 2026
0125d69
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 17, 2026
eaf9a38
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 17, 2026
5f376e1
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 17, 2026
6441362
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 17, 2026
674e24f
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 18, 2026
ccf33ff
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 18, 2026
2428350
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 18, 2026
1b4a150
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 18, 2026
f9da567
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 18, 2026
8781dbb
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 18, 2026
b80b2d5
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 19, 2026
63f6704
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 19, 2026
a1dd41e
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 19, 2026
964eb98
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 19, 2026
f67cc9e
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 20, 2026
fcbfb71
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 20, 2026
af14028
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 20, 2026
5c8d7c5
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 20, 2026
7e185cf
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 20, 2026
bd92265
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 20, 2026
77c5bc3
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
c5d73df
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
03e92f2
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
c4e7b5d
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
f179a67
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
fb44d9f
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
3c52cdf
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
c53b1b0
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
4d39d1a
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
c3a1b56
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
45a0c2c
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
b8d7361
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
1065ea9
Merge remote-tracking branch 'origin/main' into feat/stack-7-identity
Mikelle Nov 23, 2026
d2c0e47
Merge branch 'feat/stack-7-identity' into feat/stack-8-storage-handle
Mikelle Nov 23, 2026
d1eebe9
Merge remote-tracking branch 'origin/main' into feat/stack-8-storage-…
Mikelle Nov 24, 2026
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
38 changes: 19 additions & 19 deletions rust/crates/truapi/src/host_internal/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use parity_scale_codec::{Decode, Encode};
use crate::platform::{
BLESSED_REMOTE_DOMAINS, CoreStorage, CoreStorageKey, CrossProductSignatureKind,
DevicePermissionStatus, PermissionAuthorizationRequest, PermissionAuthorizationStatus,
PermissionDecision, PermissionStatusHost, Permissions, ProductContext, ProductId,
PermissionDecision, PermissionStatusHost, Permissions, ProductContext, ProductId, StackStorage,
is_valid_remote_domain_pattern, normalize_remote_domain, remote_domain_candidates,
};
use truapi::latest::{
Expand Down Expand Up @@ -164,7 +164,7 @@ impl TemporaryPermissions {

/// Coordinates saved and one-use permissions with the platform's prompts.
pub struct PermissionsService<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> {
storage: &'a S,
storage: StackStorage<'a, S>,
prompt: &'a P,
product: &'a ProductContext,
/// Live OS permission state, when the host serves that capability. Absent
Expand All @@ -182,7 +182,7 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
/// Device grants resolve without an OS check by default. Use
/// [`Self::with_status_host`] on paths that enforce a device capability, so
/// a grant the OS has since withdrawn stops reading as usable.
pub fn new(storage: &'a S, prompt: &'a P, product: &'a ProductContext) -> Self {
pub fn new(storage: StackStorage<'a, S>, prompt: &'a P, product: &'a ProductContext) -> Self {
Self {
storage,
prompt,
Expand Down Expand Up @@ -258,7 +258,7 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
// Nothing per-domain covers the rest, so the remaining question is
// whether this exact set has already been refused.
BundleResolution::Undecided(undecided) => {
authorization_status(self.storage, self.bundle_key(&undecided)).await
authorization_status(&self.storage, self.bundle_key(&undecided)).await
},
}
}
Expand Down Expand Up @@ -326,7 +326,7 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
};
for candidate in remote_domain_candidates(domain) {
let key = CoreStorageKey::remote_domain_authorization(self.product_id(), &candidate);
if let Some(stored) = peek_stored(self.storage, key.clone()).await? {
if let Some(stored) = peek_stored(&self.storage, key.clone()).await? {
fallback = stored.into();
break;
}
Expand All @@ -351,7 +351,7 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
if self.trusted_product {
return Ok(PermissionAuthorizationStatus::Authorized);
}
if let Some(stored) = peek_stored(self.storage, key.clone()).await? {
if let Some(stored) = peek_stored(&self.storage, key.clone()).await? {
return Ok(stored.into());
}
Ok(if self.temporary_permissions.authorize(key, consume) {
Expand Down Expand Up @@ -382,14 +382,14 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
PermissionAuthorizationRequest::Remote(request) => self.peek_remote(request).await,
PermissionAuthorizationRequest::IdentityDisclosure => {
authorization_status(
self.storage,
&self.storage,
CoreStorageKey::identity_disclosure_authorization(self.product_id()),
)
.await
},
PermissionAuthorizationRequest::AccountAccess { target_product_id } => {
authorization_status(
self.storage,
&self.storage,
CoreStorageKey::account_access_authorization(
self.product_id(),
target_product_id,
Expand Down Expand Up @@ -446,10 +446,10 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
let key =
CoreStorageKey::remote_domain_authorization(self.product_id(), domain);
self.temporary_permissions.revoke(&key);
set_authorization_status(self.storage, key, status).await?;
set_authorization_status(&self.storage, key, status).await?;
}
if domains.len() > 1 {
set_authorization_status(self.storage, self.bundle_key(domains), status)
set_authorization_status(&self.storage, self.bundle_key(domains), status)
.await?;
}
return Ok(());
Expand All @@ -476,7 +476,7 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
},
};
self.temporary_permissions.revoke(&key);
set_authorization_status(self.storage, key, status).await
set_authorization_status(&self.storage, key, status).await
}

/// Resolves a device capability against both the OS state and the stored
Expand Down Expand Up @@ -593,7 +593,7 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
};
// A refusal of this exact set is already an answer to this exact prompt.
let bundle_key = self.bundle_key(&undecided);
if let Some(cached) = peek_stored(self.storage, bundle_key.clone()).await? {
if let Some(cached) = peek_stored(&self.storage, bundle_key.clone()).await? {
return Ok(match cached {
StoredAuthorizationStatus::Authorized => authorize(),
StoredAuthorizationStatus::Denied => PermissionAuthorizationStatus::Denied,
Expand Down Expand Up @@ -657,14 +657,14 @@ impl<'a, S: CoreStorage + ?Sized, P: Permissions + ?Sized> PermissionsService<'a
key: CoreStorageKey,
authorization: StoredAuthorizationStatus,
) -> Result<PermissionAuthorizationStatus, GenericError> {
self.storage.write_core_storage(key, authorization.encode()).await?;
self.storage.write(key, authorization.encode()).await?;
Ok(authorization.into())
}
}

/// Read the decision stored under an encoded permission scope.
pub async fn authorization_status<S: CoreStorage + ?Sized>(
storage: &S,
storage: &StackStorage<'_, S>,
key: CoreStorageKey,
) -> Result<PermissionAuthorizationStatus, GenericError> {
Ok(peek_stored(storage, key)
Expand All @@ -674,24 +674,24 @@ pub async fn authorization_status<S: CoreStorage + ?Sized>(
}

async fn peek_stored<S: CoreStorage + ?Sized>(
storage: &S,
storage: &StackStorage<'_, S>,
key: CoreStorageKey,
) -> Result<Option<StoredAuthorizationStatus>, GenericError> {
let Some(raw) = storage.read_core_storage(key).await? else {
let Some(raw) = storage.read(key).await? else {
return Ok(None);
};
Ok(StoredAuthorizationStatus::decode(&mut &*raw).ok())
}

/// Save or clear the decision stored under an encoded permission scope.
pub async fn set_authorization_status<S: CoreStorage + ?Sized>(
storage: &S,
storage: &StackStorage<'_, S>,
key: CoreStorageKey,
status: PermissionAuthorizationStatus,
) -> Result<(), GenericError> {
match status_into_stored(status) {
Some(stored) => storage.write_core_storage(key, stored.encode()).await,
None => storage.clear_core_storage(key).await,
Some(stored) => storage.write(key, stored.encode()).await,
None => storage.clear(key).await,
}
}

Expand Down
Loading
Loading