Skip to content

feat: add C# bindings for ant-ffi#22

Merged
Nic-dorman merged 5 commits intomaidsafe:mainfrom
Nic-dorman:feat/csharp-bindings
Feb 6, 2026
Merged

feat: add C# bindings for ant-ffi#22
Nic-dorman merged 5 commits intomaidsafe:mainfrom
Nic-dorman:feat/csharp-bindings

Conversation

@Nic-dorman
Copy link
Contributor

Summary

  • Complete C# bindings using P/Invoke
  • Core types: SecretKey, PublicKey, Chunk, DataMapChunk, Network, Wallet, Client
  • Self-encryption, key derivation, pointers, scratchpads, registers, graph entries, vault
  • Async operations with CancellationToken support
  • 78 unit and integration tests

Test plan

  • Unit tests pass
  • Integration tests pass against local network

Nic-dorman and others added 4 commits February 5, 2026 11:10
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Runs on push/PR to main:
- Builds Rust FFI library
- Builds C# bindings with dotnet
- Runs unit tests (integration tests excluded)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The dependabot bump to 0.10.0 was incomplete. This adds the required
API changes:

- Network::custom() now takes 4th parameter (royalties_pk_hex)
- file_cost() now takes follow_symlinks and include_hidden params
- dir_upload/dir_upload_public now take Wallet directly
- file_content_upload uses BulkPaymentOption via .into()
- dir_content_upload uses BulkPaymentOption via .into()

Updated bindings:
- PHP: Network.php, RustBuffer.php, ant_ffi.h
- Swift: Regenerated UniFFI bindings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… API

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Nic-dorman Nic-dorman force-pushed the feat/csharp-bindings branch from 58512ec to 2f402ea Compare February 5, 2026 11:22
… 0.10.0 API

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Nic-dorman Nic-dorman closed this Feb 5, 2026
@Nic-dorman Nic-dorman force-pushed the feat/csharp-bindings branch from 2f402ea to f70e908 Compare February 5, 2026 12:01
@Nic-dorman Nic-dorman reopened this Feb 6, 2026
@Nic-dorman Nic-dorman merged commit 026b050 into maidsafe:main Feb 6, 2026
5 of 7 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