Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephanerob/borsh_ex
Elixir implementation of Binary Object Representation Serializer for Hashing (borsh)
https://github.com/stephanerob/borsh_ex
blockchain elixir-lang metadata solana
Last synced: 6 days ago
JSON representation
Elixir implementation of Binary Object Representation Serializer for Hashing (borsh)
- Host: GitHub
- URL: https://github.com/stephanerob/borsh_ex
- Owner: StephaneRob
- License: bsd-2-clause
- Created: 2022-01-08T19:42:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-06T09:03:50.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T15:04:42.106Z (2 months ago)
- Topics: blockchain, elixir-lang, metadata, solana
- Language: Elixir
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BorshEx
:warning: Work in progress
Elixir implementation of Binary Object Representation Serializer for Hashing ([borsh](https://borsh.io))
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `borsh_ex` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:borsh_ex, "~> 0.1.0"}
]
end
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/borsh_ex](https://hexdocs.pm/borsh_ex).## Usage
```elixir
defmodule BorshEx.FakeData do
use BorshEx.Schemadefstruct a: nil, b: nil, c: nil
borsh_schema do
field :a, "u8"
field :b, "u64"
field :c, "string"
end
end
```## Copyright and License
Copyright (c) 2022, Stéphane Robino
This library is licensed under the BSD-2-Clause.