This repository is a focused fork of Cardano.swift, streamlined to provide core Cardano blockchain functionality.
CardanoCore provides essential Cardano blockchain interactions while maintaining a lighter footprint compared to the full Cardano.swift SDK. This repository focuses on core functionality needed for basic Cardano blockchain operations.
- Streamlined Cardano blockchain interactions
- Key management and address generation
- Transaction building and signing
- UTXO management
- Network communication basics
- macOS 10.12+ / iOS 11+
- Swift 5.0+
- Xcode 13+ (for development)
Add the following to your Package.swift file:
dependencies:[.package(url:"https://github.com/dchatzieleftheriou-bc/CardanoCore", from:"0.1.0")]Add this to your Podfile:
pod'CardanoCore','~> 0.1.0'import CardanoCore
// Initialize keychain
letkeychain=tryKeychain(mnemonic:["your","mnemonic","phrase"])
// Generate account
try keychain.addAccount(index:0)
// Initialize Cardano instance
letcardano=tryCardano(network:.testnet,
signer: keychain)
// Generate new address
letaccount=try cardano.addresses.fetchedAccounts()[0]letaddress=try cardano.addresses.new(for: account, change:false)This repository differs from the original Cardano.swift in the following ways:
- Focused feature set
- Simplified dependency structure
- Modified networking layer
- Streamlined API surface
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Original Cardano.swift project
- Cardano community