Chrysalis 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chrysalis --version 0.1.0                
NuGet\Install-Package Chrysalis -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Chrysalis" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chrysalis --version 0.1.0                
#r "nuget: Chrysalis, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Chrysalis as a Cake Addin
#addin nuget:?package=Chrysalis&version=0.1.0

// Install Chrysalis as a Cake Tool
#tool nuget:?package=Chrysalis&version=0.1.0                

Chrysalis: Cardano Serialization Library for .NET 🦋

.NET

Chrysalis is an open-source .NET library designed to facilitate the serialization and deserialization of Cardano blockchain data structures. With a strong focus on adhering to the Cardano standards and enhancing the .NET Cardano developer ecosystem, Chrysalis aims to provide developers with a reliable and consistent toolkit for working with Cardano.

🚧 NOTE: This library is currently a work in progress. Feedback and contributions are welcome!

Features

  • Cardano Serialization: Convert Cardano data structures to and from CBOR (Concise Binary Object Representation).
  • Bech32 Address Encoding/Decoding: Handle Cardano addresses seamlessly.
  • Extensive Data Model Support: Work with a wide range of Cardano data types, including Transactions, Assets, MultiAssets, and more.
  • Smart Contract Interaction: Interact with Cardano smart contracts.
  • Cross-Platform Compatibility: Use Chrysalis in any .NET project, including .NET Core, .NET Framework, Xamarin, and more.

Roadmap 🚀

  1. (De)serialization Support: Achieve complete serialization and deserialization for any Cardano data type described in CDDL https://github.com/input-output-hk/cardano-ledger/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl.
  2. Transaction Handling: Introduce capabilities for building and signing Cardano transactions.
  3. Advanced Address Management: Implement address generation, derivation, and other associated functionalities.

Getting Started

To use Chrysalis in your .NET project:

  1. dotnet add package Chrysalis

  2. Example Usage

    CBOR (De)serialization

    var originalTransaction = CborSerializerV2.FromHex<Transaction>(originalTransactionCborHex)!;
    
    var serializedTransaction = CborSerializerV2.Serialize(originalTransaction);
    
    var deserializedTransaction = CborSerializerV2.Deserialize<Transaction>(serializedTransaction);
    

    Bech32 Address Encoding/Decoding

    var addressBech32 = "addr...";
    var addressObject = Address.FromBech32(addressBech32);
    var addressBech32Again = addressObject.ToBech32();
    var paymentKeyHash = addressObject.GetPaymentKeyHash();
    var stakeKeyHash = addressObject.GetStakeKeyHash();
    

How to Contribute

Interested in contributing to Chrysalis? Great! We appreciate any help, be it in the form of code contributions, documentation, or even bug reports.

  • Fork and Clone: Fork this repository, clone it locally, and set up the necessary development environment.
  • Branch: Always create a new branch for your work.
  • Pull Request: Submit a pull request once you're ready. Ensure you describe your changes clearly.
  • Feedback: Wait for feedback and address any comments or suggestions.

License

MIT License

Copyright (c) 2023 0xAccretion

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Give your feedback, star the repository if you found it useful, and consider contributing to push the Cardano .NET ecosystem forward! 🌟

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Chrysalis:

Package Downloads
Argus.Sync

A ASP.NET Framework for Indexing Cardano Data storing it in PostgresSQL

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.4.2 51 11/27/2024
0.4.1 36 11/27/2024
0.4.0 101 11/22/2024
0.3.1 83 11/22/2024
0.3.0 86 11/5/2024
0.2.8 90 10/21/2024
0.2.7 122 10/20/2024
0.2.6 141 10/18/2024
0.2.5 93 10/17/2024
0.2.4 89 10/17/2024
0.2.3 95 10/16/2024
0.2.2 199 9/20/2024
0.2.1 102 9/19/2024
0.2.0 83 9/19/2024
0.1.9 340 9/13/2024
0.1.8 127 9/11/2024
0.1.7 120 9/11/2024
0.1.6 121 9/11/2024
0.1.5 110 9/6/2024
0.1.4 103 9/5/2024
0.1.3 102 9/5/2024
0.1.0 60 9/3/2024
0.0.7 101 10/10/2023
0.0.6 86 10/6/2023
0.0.5 86 10/6/2023
0.0.1 49 9/3/2024