Skip to content

Feat/accountid32 and disclosure#1

Merged
nol4lej merged 9 commits intomainfrom
feat/accountid32-and-disclosure
Feb 23, 2026
Merged

Feat/accountid32 and disclosure#1
nol4lej merged 9 commits intomainfrom
feat/accountid32-and-disclosure

Conversation

@nol4lej
Copy link
Copy Markdown
Contributor

@nol4lej nol4lej commented Feb 23, 2026

No description provided.

Replace `Address([u8; 20])` with `Address([u8; 32])` throughout the SDK
to align with Substrate's native AccountId32 model. All account types
(Sr25519, ECDSA, EVM-mapped) are now represented uniformly as 32-byte
addresses.
Add ZK disclosure witness generation to the SDK and fix compatibility
for WASM targets (browser + Node.js) by removing std dependencies.

Disclosure circuit (feat):
- infrastructure/crypto: expose poseidon_hash_1(), u64_to_field_bytes(),
  make bytes_to_field/field_to_bytes pub(crate)
- presentation/wasm_bindings: new buildDisclosureInputs() WASM export —
  builds circuit inputs for the disclosure proof (value, owner, asset_id,
  commitment, selective disclosure mask)
- application/builders/compliance/disclosure_flow: create_disclosure_witness
- Cargo.toml: orbinum-zk-core 0.4.0→0.5.0, orbinum-encrypted-memo
  0.2.2→0.3.0, add blake2 = "0.10" (optional, crypto-signing gate)
…ncluding selective disclosure witness API and hybrid CI build
@nol4lej nol4lej merged commit 4a4804d into main Feb 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant