Skip to content

Add auditor examples - #2

Merged
musitdev merged 7 commits into
mainfrom
musitdev/set_auditor_examples
Jun 22, 2026
Merged

Add auditor examples#2
musitdev merged 7 commits into
mainfrom
musitdev/set_auditor_examples

Conversation

@musitdev

Copy link
Copy Markdown
Collaborator

Add an example on how to set auditor for the chain or asset.

musitdev added 4 commits June 18, 2026 16:22
…DK calls and set_auditor_example

- add set_chain_auditor and set_asset_auditor to transaction builder and public API
- expose get_chain_auditor_encryption_key on the public ConfidentialAsset API
- add set_auditor_example demonstrating chain and asset auditor set/verify/clear flows
…er address

- add with_address() builder method to Ed25519Account to decouple the signing
  key from the on-chain account address (needed for genesis accounts like
  @core_resources whose address is fixed regardless of authentication key)
- use ISSUER_ADDRESS env var in set_auditor_example to support this case
…transfer

- check chain and asset auditor keys before transfer and fail early with
  a clear message if chain auditor is not configured
- make section B of set_auditor_example optional (skipped when TOKEN_ADDRESS
  is not set) with a helpful message explaining how to proceed
- renumber transfer example steps 7–11 after inserting the auditor check
@musitdev
musitdev requested a review from ganymedio June 19, 2026 13:02
@musitdev
musitdev merged commit 5576503 into main Jun 22, 2026
18 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.

2 participants